Table of Contents

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

factory IImagingFactory
size SizeInt32
pixelFormat PixelFormat

Returns

IBitmap

CreateBitmap(IImagingFactory, SizeInt32, in PixelFormat, BitmapAllocationOptions)

public static IBitmap CreateBitmap(this IImagingFactory factory, SizeInt32 size, in PixelFormat pixelFormat, BitmapAllocationOptions options)

Parameters

factory IImagingFactory
size SizeInt32
pixelFormat PixelFormat
options BitmapAllocationOptions

Returns

IBitmap

CreateBitmap<TPixel>(IImagingFactory, int, int)

public static IBitmap<TPixel> CreateBitmap<TPixel>(this IImagingFactory factory, int width, int height) where TPixel : unmanaged, INaturalPixelInfo

Parameters

factory IImagingFactory
width int
height int

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

factory IImagingFactory
width int
height int
options BitmapAllocationOptions

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

factory IImagingFactory
size SizeInt32

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

factory IImagingFactory
size SizeInt32
options BitmapAllocationOptions

Returns

IBitmap<TPixel>

Type Parameters

TPixel

CreateBitmap(IImagingFactory, SizeInt32, in PixelFormat, void*, int, uint)

public static IBitmap CreateBitmap(this IImagingFactory factory, SizeInt32 size, in PixelFormat pixelFormat, void* pBuffer, int bufferStride, uint bufferSize)

Parameters

factory IImagingFactory
size SizeInt32
pixelFormat PixelFormat
pBuffer void*
bufferStride int
bufferSize uint

Returns

IBitmap

CreateBitmap(IImagingFactory, SizeInt32, in PixelFormat, void*, int, uint, BitmapAllocationOptions)

public static IBitmap CreateBitmap(this IImagingFactory factory, SizeInt32 size, in PixelFormat pixelFormat, void* pBuffer, int bufferStride, uint bufferSize, BitmapAllocationOptions options)

Parameters

factory IImagingFactory
size SizeInt32
pixelFormat PixelFormat
pBuffer void*
bufferStride int
bufferSize uint
options BitmapAllocationOptions

Returns

IBitmap

CreateBitmap<TPixel>(IImagingFactory, int, int, TPixel*, int, uint)

public static IBitmap<TPixel> CreateBitmap<TPixel>(this IImagingFactory factory, int width, int height, TPixel* pBuffer, int bufferStride, uint bufferSize) where TPixel : unmanaged, INaturalPixelInfo

Parameters

factory IImagingFactory
width int
height int
pBuffer TPixel*
bufferStride int
bufferSize uint

Returns

IBitmap<TPixel>

Type Parameters

TPixel

CreateBitmap<TPixel>(IImagingFactory, int, int, TPixel*, int, uint, BitmapAllocationOptions)

public static IBitmap<TPixel> CreateBitmap<TPixel>(this IImagingFactory factory, int width, int height, TPixel* pBuffer, int bufferStride, uint bufferSize, BitmapAllocationOptions options) where TPixel : unmanaged, INaturalPixelInfo

Parameters

factory IImagingFactory
width int
height int
pBuffer TPixel*
bufferStride int
bufferSize uint
options BitmapAllocationOptions

Returns

IBitmap<TPixel>

Type Parameters

TPixel

CreateBitmap<TPixel>(IImagingFactory, SizeInt32, TPixel*, int, uint)

public static IBitmap<TPixel> CreateBitmap<TPixel>(this IImagingFactory factory, SizeInt32 size, TPixel* pBuffer, int bufferStride, uint bufferSize) where TPixel : unmanaged, INaturalPixelInfo

Parameters

factory IImagingFactory
size SizeInt32
pBuffer TPixel*
bufferStride int
bufferSize uint

Returns

IBitmap<TPixel>

Type Parameters

TPixel

CreateBitmap<TPixel>(IImagingFactory, SizeInt32, TPixel*, int, uint, BitmapAllocationOptions)

public static IBitmap<TPixel> CreateBitmap<TPixel>(this IImagingFactory factory, SizeInt32 size, TPixel* pBuffer, int bufferStride, uint bufferSize, BitmapAllocationOptions options) where TPixel : unmanaged, INaturalPixelInfo

Parameters

factory IImagingFactory
size SizeInt32
pBuffer TPixel*
bufferStride int
bufferSize uint
options BitmapAllocationOptions

Returns

IBitmap<TPixel>

Type Parameters

TPixel