Table of Contents

Constructor BitmapLayer

Namespace
PaintDotNet
Assembly
PaintDotNet.Data.dll

BitmapLayer(SizeInt32)

public BitmapLayer(SizeInt32 size)

Parameters

size SizeInt32

BitmapLayer(Size)

public BitmapLayer(Size size)

Parameters

size Size

BitmapLayer(int, int)

public BitmapLayer(int width, int height)

Parameters

width int
height int

BitmapLayer(Size, ColorBgra)

public BitmapLayer(Size size, ColorBgra fillColor)

Parameters

size Size
fillColor ColorBgra

BitmapLayer(SizeInt32, ColorBgra)

public BitmapLayer(SizeInt32 size, ColorBgra fillColor)

Parameters

size SizeInt32
fillColor ColorBgra

BitmapLayer(int, int, ColorBgra)

public BitmapLayer(int width, int height, ColorBgra fillColor)

Parameters

width int
height int
fillColor ColorBgra

BitmapLayer(Surface)

Creates a new BitmapLayer of the same size as the given Surface, and copies the pixels from the given Surface.

public BitmapLayer(Surface surface)

Parameters

surface Surface

The Surface to copy pixels from.

BitmapLayer(Surface, bool)

Creates a new BitmapLayer of the same size as the given Surface, and either copies the pixels of the given Surface or takes ownership of it.

public BitmapLayer(Surface surface, bool takeOwnership)

Parameters

surface Surface

The Surface.

takeOwnership bool

true to take ownership of the surface (make sure NOT to Dispose() it yourself), or false to copy its pixels