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.
- 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.