Skip to content

Commit 3114642

Browse files
committed
Update Bitmap initial script
1 parent b2517fb commit 3114642

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DefaultCode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ internal static class DefaultCode
8282
+ "protected override void OnRender(IBitmapEffectOutput output)\r\n"
8383
+ "{\r\n"
8484
+ " using IEffectInputBitmap<ColorBgra32> sourceBitmap = Environment.GetSourceBitmapBgra32();\r\n"
85-
+ " using IBitmapLock<ColorBgra32> sourceLock = Environment.GetSourceBitmapBgra32().Lock(new RectInt32(0, 0, sourceBitmap.Size));\r\n"
85+
+ " using IBitmapLock<ColorBgra32> sourceLock = sourceBitmap.Lock(new RectInt32(0, 0, sourceBitmap.Size));\r\n"
8686
+ " RegionPtr<ColorBgra32> sourceRegion = sourceLock.AsRegionPtr();\r\n"
8787
+ "\r\n"
8888
+ " RectInt32 outputBounds = output.Bounds;\r\n"

0 commit comments

Comments
 (0)