Table of Contents

Method CreateWindow

Namespace
PaintDotNet.Imaging
Assembly
PaintDotNet.Windows.Core.dll

CreateWindow(IBitmap, RectInt32)

Creates a window into the bitmap. This is similar to a clipper (see CreateBitmapClipper(IBitmapSource, RectInt32)) but still allows locking and read/write access to the clipped region.

public static IBitmap CreateWindow(this IBitmap bitmap, RectInt32 rect)

Parameters

bitmap IBitmap
rect RectInt32

Returns

IBitmap

CreateWindow(IBitmap, Point2Int32)

Creates a window into the bitmap. This is similar to a clipper (see CreateBitmapClipper(IBitmapSource, RectInt32)) but still allows locking and read/write access to the clipped region.

public static IBitmap CreateWindow(this IBitmap bitmap, Point2Int32 offset)

Parameters

bitmap IBitmap
offset Point2Int32

Returns

IBitmap

CreateWindow(IBitmap, SizeInt32)

Creates a window into the bitmap. This is similar to a clipper (see CreateBitmapClipper(IBitmapSource, RectInt32)) but still allows locking and read/write access to the clipped region.

public static IBitmap CreateWindow(this IBitmap bitmap, SizeInt32 size)

Parameters

bitmap IBitmap
size SizeInt32

Returns

IBitmap

CreateWindow<TPixel>(IBitmap<TPixel>, RectInt32)

Creates a window into the bitmap. This is similar to a clipper (see CreateBitmapClipper(IBitmapSource, RectInt32)) but still allows locking and read/write access to the clipped region.

public static IBitmap<TPixel> CreateWindow<TPixel>(this IBitmap<TPixel> bitmap, RectInt32 rect) where TPixel : unmanaged, INaturalPixelInfo

Parameters

bitmap IBitmap<TPixel>
rect RectInt32

Returns

IBitmap<TPixel>

Type Parameters

TPixel

CreateWindow<TPixel>(IBitmap<TPixel>, Point2Int32)

Creates a window into the bitmap. This is similar to a clipper (see CreateBitmapClipper(IBitmapSource, RectInt32)) but still allows locking and read/write access to the clipped region.

public static IBitmap<TPixel> CreateWindow<TPixel>(this IBitmap<TPixel> bitmap, Point2Int32 offset) where TPixel : unmanaged, INaturalPixelInfo

Parameters

bitmap IBitmap<TPixel>
offset Point2Int32

Returns

IBitmap<TPixel>

Type Parameters

TPixel

CreateWindow<TPixel>(IBitmap<TPixel>, SizeInt32)

Creates a window into the bitmap. This is similar to a clipper (see CreateBitmapClipper(IBitmapSource, RectInt32)) but still allows locking and read/write access to the clipped region.

public static IBitmap<TPixel> CreateWindow<TPixel>(this IBitmap<TPixel> bitmap, SizeInt32 size) where TPixel : unmanaged, INaturalPixelInfo

Parameters

bitmap IBitmap<TPixel>
size SizeInt32

Returns

IBitmap<TPixel>

Type Parameters

TPixel