Method CreateBitmap
- Namespace
- PaintDotNet.Imaging
- Assembly
- PaintDotNet.Windows.Core.dll
CreateBitmap(IImagingFactory, SizeInt32, in PixelFormat)
public static IBitmap CreateBitmap(this IImagingFactory factory, SizeInt32 size, in PixelFormat pixelFormat)
Parameters
factoryIImagingFactorysizeSizeInt32pixelFormatPixelFormat
Returns
CreateBitmap(IImagingFactory, SizeInt32, in PixelFormat, BitmapAllocationOptions)
public static IBitmap CreateBitmap(this IImagingFactory factory, SizeInt32 size, in PixelFormat pixelFormat, BitmapAllocationOptions options)
Parameters
factoryIImagingFactorysizeSizeInt32pixelFormatPixelFormatoptionsBitmapAllocationOptions
Returns
CreateBitmap<TPixel>(IImagingFactory, int, int)
public static IBitmap<TPixel> CreateBitmap<TPixel>(this IImagingFactory factory, int width, int height) where TPixel : unmanaged, INaturalPixelInfo
Parameters
factoryIImagingFactorywidthintheightint
Returns
- IBitmap<TPixel>
Type Parameters
TPixel
CreateBitmap<TPixel>(IImagingFactory, int, int, BitmapAllocationOptions)
public static IBitmap<TPixel> CreateBitmap<TPixel>(this IImagingFactory factory, int width, int height, BitmapAllocationOptions options) where TPixel : unmanaged, INaturalPixelInfo
Parameters
factoryIImagingFactorywidthintheightintoptionsBitmapAllocationOptions
Returns
- IBitmap<TPixel>
Type Parameters
TPixel
CreateBitmap<TPixel>(IImagingFactory, SizeInt32)
public static IBitmap<TPixel> CreateBitmap<TPixel>(this IImagingFactory factory, SizeInt32 size) where TPixel : unmanaged, INaturalPixelInfo
Parameters
factoryIImagingFactorysizeSizeInt32
Returns
- IBitmap<TPixel>
Type Parameters
TPixel
CreateBitmap<TPixel>(IImagingFactory, SizeInt32, BitmapAllocationOptions)
public static IBitmap<TPixel> CreateBitmap<TPixel>(this IImagingFactory factory, SizeInt32 size, BitmapAllocationOptions options) where TPixel : unmanaged, INaturalPixelInfo
Parameters
factoryIImagingFactorysizeSizeInt32optionsBitmapAllocationOptions
Returns
- IBitmap<TPixel>
Type Parameters
TPixel
CreateBitmap(IImagingFactory, SizeInt32, in PixelFormat, void*, int, nuint)
public static IBitmap CreateBitmap(this IImagingFactory factory, SizeInt32 size, in PixelFormat pixelFormat, void* pBuffer, int bufferStride, nuint bufferSize)
Parameters
factoryIImagingFactorysizeSizeInt32pixelFormatPixelFormatpBuffervoid*bufferStrideintbufferSizenuint
Returns
CreateBitmap(IImagingFactory, SizeInt32, in PixelFormat, void*, int, nuint, BitmapAllocationOptions)
public static IBitmap CreateBitmap(this IImagingFactory factory, SizeInt32 size, in PixelFormat pixelFormat, void* pBuffer, int bufferStride, nuint bufferSize, BitmapAllocationOptions options)
Parameters
factoryIImagingFactorysizeSizeInt32pixelFormatPixelFormatpBuffervoid*bufferStrideintbufferSizenuintoptionsBitmapAllocationOptions
Returns
CreateBitmap<TPixel>(IImagingFactory, int, int, TPixel*, int, nuint)
public static IBitmap<TPixel> CreateBitmap<TPixel>(this IImagingFactory factory, int width, int height, TPixel* pBuffer, int bufferStride, nuint bufferSize) where TPixel : unmanaged, INaturalPixelInfo
Parameters
factoryIImagingFactorywidthintheightintpBufferTPixel*bufferStrideintbufferSizenuint
Returns
- IBitmap<TPixel>
Type Parameters
TPixel
CreateBitmap<TPixel>(IImagingFactory, int, int, TPixel*, int, nuint, BitmapAllocationOptions)
public static IBitmap<TPixel> CreateBitmap<TPixel>(this IImagingFactory factory, int width, int height, TPixel* pBuffer, int bufferStride, nuint bufferSize, BitmapAllocationOptions options) where TPixel : unmanaged, INaturalPixelInfo
Parameters
factoryIImagingFactorywidthintheightintpBufferTPixel*bufferStrideintbufferSizenuintoptionsBitmapAllocationOptions
Returns
- IBitmap<TPixel>
Type Parameters
TPixel
CreateBitmap<TPixel>(IImagingFactory, SizeInt32, TPixel*, int, nuint)
public static IBitmap<TPixel> CreateBitmap<TPixel>(this IImagingFactory factory, SizeInt32 size, TPixel* pBuffer, int bufferStride, nuint bufferSize) where TPixel : unmanaged, INaturalPixelInfo
Parameters
factoryIImagingFactorysizeSizeInt32pBufferTPixel*bufferStrideintbufferSizenuint
Returns
- IBitmap<TPixel>
Type Parameters
TPixel
CreateBitmap<TPixel>(IImagingFactory, SizeInt32, TPixel*, int, nuint, BitmapAllocationOptions)
public static IBitmap<TPixel> CreateBitmap<TPixel>(this IImagingFactory factory, SizeInt32 size, TPixel* pBuffer, int bufferStride, nuint bufferSize, BitmapAllocationOptions options) where TPixel : unmanaged, INaturalPixelInfo
Parameters
factoryIImagingFactorysizeSizeInt32pBufferTPixel*bufferStrideintbufferSizenuintoptionsBitmapAllocationOptions
Returns
- IBitmap<TPixel>
Type Parameters
TPixel
CreateBitmap<TPixel>(IImagingFactory, RegionPtr<TPixel>)
Creates a bitmap by copying the pixel data from the given region.
public static IBitmap<TPixel> CreateBitmap<TPixel>(this IImagingFactory factory, RegionPtr<TPixel> sourceRegion) where TPixel : unmanaged, INaturalPixelInfo
Parameters
factoryIImagingFactorysourceRegionRegionPtr<TPixel>
Returns
- IBitmap<TPixel>
Type Parameters
TPixel
CreateBitmap<TPixel>(IImagingFactory, RegionPtr<TPixel>, BitmapAllocationOptions)
Creates a bitmap by copying the pixel data from the given region.
public static IBitmap<TPixel> CreateBitmap<TPixel>(this IImagingFactory factory, RegionPtr<TPixel> sourceRegion, BitmapAllocationOptions options) where TPixel : unmanaged, INaturalPixelInfo
Parameters
factoryIImagingFactorysourceRegionRegionPtr<TPixel>optionsBitmapAllocationOptions
Returns
- IBitmap<TPixel>
Type Parameters
TPixel