Method Cast
- Namespace
- PaintDotNet.Imaging
- Assembly
- PaintDotNet.Windows.Core.dll
Cast<TPixel>(IBitmap, in PixelFormat)
public static IBitmap Cast<TPixel>(this IBitmap bitmap, in PixelFormat pixelFormat)
Parameters
bitmap
IBitmappixelFormat
PixelFormat
Returns
Type Parameters
TPixel
Cast<TPixel>(IBitmap)
public static IBitmap<TPixel> Cast<TPixel>(this IBitmap bitmap) where TPixel : unmanaged, INaturalPixelInfo
Parameters
bitmap
IBitmap
Returns
- IBitmap<TPixel>
Type Parameters
TPixel