We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2517fb commit 3114642Copy full SHA for 3114642
DefaultCode.cs
@@ -82,7 +82,7 @@ internal static class DefaultCode
82
+ "protected override void OnRender(IBitmapEffectOutput output)\r\n"
83
+ "{\r\n"
84
+ " using IEffectInputBitmap<ColorBgra32> sourceBitmap = Environment.GetSourceBitmapBgra32();\r\n"
85
- + " using IBitmapLock<ColorBgra32> sourceLock = Environment.GetSourceBitmapBgra32().Lock(new RectInt32(0, 0, sourceBitmap.Size));\r\n"
+ + " using IBitmapLock<ColorBgra32> sourceLock = sourceBitmap.Lock(new RectInt32(0, 0, sourceBitmap.Size));\r\n"
86
+ " RegionPtr<ColorBgra32> sourceRegion = sourceLock.AsRegionPtr();\r\n"
87
+ "\r\n"
88
+ " RectInt32 outputBounds = output.Bounds;\r\n"
0 commit comments