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, nuint)

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

Parameters

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

Returns

IBitmap

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

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

Returns

IBitmap

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

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

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

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

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

factory IImagingFactory
size SizeInt32
pBuffer TPixel*
bufferStride int
bufferSize nuint

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

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

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

factory IImagingFactory
sourceRegion RegionPtr<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

factory IImagingFactory
sourceRegion RegionPtr<TPixel>
options BitmapAllocationOptions

Returns

IBitmap<TPixel>

Type Parameters

TPixel