Table of Contents

Method CreateBitmap

Namespace
PaintDotNet.Imaging
Assembly
PaintDotNet.Windows.dll

CreateBitmap(int, int, in PixelFormat)

IBitmap CreateBitmap(int width, int height, in PixelFormat pixelFormat)

Parameters

width int
height int
pixelFormat PixelFormat

Returns

IBitmap

CreateBitmap(int, int, in PixelFormat, BitmapAllocationOptions)

IBitmap CreateBitmap(int width, int height, in PixelFormat pixelFormat, BitmapAllocationOptions options)

Parameters

width int
height int
pixelFormat PixelFormat
options BitmapAllocationOptions

Returns

IBitmap

CreateBitmap(int, int, in PixelFormat, void*, int, nuint)

IBitmap CreateBitmap(int width, int height, in PixelFormat pixelFormat, void* pBuffer, int bufferStride, nuint bufferSize)

Parameters

width int
height int
pixelFormat PixelFormat
pBuffer void*
bufferStride int
bufferSize nuint

Returns

IBitmap

CreateBitmap(int, int, in PixelFormat, void*, int, nuint, BitmapAllocationOptions)

IBitmap CreateBitmap(int width, int height, in PixelFormat pixelFormat, void* pBuffer, int bufferStride, nuint bufferSize, BitmapAllocationOptions options)

Parameters

width int
height int
pixelFormat PixelFormat
pBuffer void*
bufferStride int
bufferSize nuint
options BitmapAllocationOptions

Returns

IBitmap