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
Returns
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
bitmapIBitmapoffsetPoint2Int32
Returns
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
Returns
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
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
bitmapIBitmap<TPixel>offsetPoint2Int32
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
Returns
- IBitmap<TPixel>
Type Parameters
TPixel