Class BitmapExtensions
- Namespace
- PaintDotNet.Imaging
- Assembly
- PaintDotNet.Windows.Core.dll
public static class BitmapExtensions
- Inheritance
-
BitmapExtensions
- Inherited Members
Methods
- CreatePremultipliedAdapter(IBitmap<ColorBgra32>, PremultipliedAdapterOptions)
Creates an adapter that reinterprets a bitmap in a straight alpha pixel format over to a premultiplied alpha pixel format, such as from ColorBgra32 to ColorPbgra32.
The adapter can then be used for Direct2D rendering, such as with CreateBitmapDeviceContext(IBitmap, in DeviceContextProperties).
A copy is not made; the adapter references the same memory as the original bitmap.
Optionally supports conversion to premultiplied alpha on creation, and conversion back to straight alpha on disposal.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- WriteRegion<TPixel>(IBitmap<TPixel>, RegionPtr<TPixel>)
Copies the source region to the top left of the destination bitmap.
- WriteRegion<TPixel>(IBitmap<TPixel>, Point2Int32, RegionPtr<TPixel>)
Copies the source region to the destination bitmap at the specified destination offset.
- WriteSource(IBitmap, IBitmapSource)
Copies the source bitmap to the top left of the destination bitmap.
- WriteSource(IBitmap, IBitmapSource, Point2Int32)
Copies the source bitmap starting from the specified source offset to the top left of the destination bitmap.
- WriteSource(IBitmap, IBitmapSource, RectInt32)
Copies the specified portion of the source bitmap to the top left of the destination bitmap.
- WriteSource(IBitmap, IBitmapSource, SizeInt32)
Copies the specified portion of the source bitmap to the top left of the destination bitmap.
- WriteSource(IBitmap, Point2Int32, IBitmapSource)
Copies the source bitmap to the destination bitmap at the specified destination offset.
- WriteSource(IBitmap, Point2Int32, IBitmapSource, Point2Int32)
Copies the source bitmap starting from the specified source offset to the destination bitmap at the specified destination offset.
- WriteSource(IBitmap, Point2Int32, IBitmapSource, RectInt32)
Copies the specified portion of the source bitmap to the destination bitmap at the specified destination offset.
- WriteSource(IBitmap, Point2Int32, IBitmapSource, SizeInt32)
Copies the specified portion of the source bitmap to the destination bitmap at the specified destination offset.
- WriteSource<TPixel>(IBitmap<TPixel>, IBitmapSource<TPixel>)
Copies the source bitmap to the top left of the destination bitmap.
- WriteSource<TPixel>(IBitmap<TPixel>, IBitmapSource<TPixel>, Point2Int32)
Copies the source bitmap starting from the specified source offset to the top left of the destination bitmap.
- WriteSource<TPixel>(IBitmap<TPixel>, IBitmapSource<TPixel>, RectInt32)
Copies the specified portion of the source bitmap to the top left of the destination bitmap.
- WriteSource<TPixel>(IBitmap<TPixel>, IBitmapSource<TPixel>, SizeInt32)
Copies the specified portion of the source bitmap to the top left of the destination bitmap.
- WriteSource<TPixel>(IBitmap<TPixel>, Point2Int32, IBitmapSource<TPixel>)
Copies the source bitmap to the destination bitmap at the specified destination offset.
- WriteSource<TPixel>(IBitmap<TPixel>, Point2Int32, IBitmapSource<TPixel>, Point2Int32)
Copies the source bitmap starting from the specified source offset to the destination bitmap at the specified destination offset.
- WriteSource<TPixel>(IBitmap<TPixel>, Point2Int32, IBitmapSource<TPixel>, RectInt32)
Copies the specified portion of the source bitmap to the destination bitmap at the specified destination offset.
- WriteSource<TPixel>(IBitmap<TPixel>, Point2Int32, IBitmapSource<TPixel>, SizeInt32)
Copies the specified portion of the source bitmap to the destination bitmap at the specified destination offset.