Table of Contents

Class BitmapLayer

Namespace
PaintDotNet
Assembly
PaintDotNet.Data.dll
public sealed class BitmapLayer : Layer, IIsDisposed, IDisposable, ICloneable, IDeserializationCallback
Inheritance
BitmapLayer
Implements
Inherited Members

Constructors

BitmapLayer(SizeInt32)
BitmapLayer(SizeInt32, ColorBgra)
BitmapLayer(Surface)

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

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.

BitmapLayer(Size)
BitmapLayer(Size, ColorBgra)
BitmapLayer(int, int)
BitmapLayer(int, int, ColorBgra)

Properties

Surface

Methods

Clone()
CreateRenderer()
Dispose(bool)
LoadProperties(object, bool)
OnPropertyChanged(string)
SaveProperties()

Allows you to save the mutable properties of the layer so you can restore them later (esp. important for undo!). Mutable properties include the layer's name, whether it's visible, and the metadata. This list might expand later.