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

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

Parameters

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

Returns

IBitmap

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

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

Parameters

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

Returns

IBitmap