Table of Contents

Property SourceImage

Namespace
PaintDotNet.Effects.Gpu
Assembly
PaintDotNet.Effects.Core.dll

SourceImage

Gets the source image to use with Direct2D.

IDeviceImage SourceImage { get; }

Property Value

IDeviceImage

Remarks

You should only retrieve this image if it will actually be used for rendering, as it will consume GPU memory once initialized.

This is equivalent to:

this.Environment.Document.Layers[this.Environment.SourceLayerIndex].Image