Table of Contents

Method GetBitmap

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

GetBitmap(in PixelFormat)

Gets a bitmap that renders the layer's contents in the requested pixel format.

IEffectInputBitmap GetBitmap(in PixelFormat pixelFormat)

Parameters

pixelFormat PixelFormat

The requested pixel format for the bitmap. The native pixel format used by Paint.NET is currently Bgra32, which can be accessed using the ColorBgra32 struct. Specifying a different pixel format is valid, but will incur conversion overhead.

Returns

IEffectInputBitmap

The bitmap.

Remarks

This bitmap does not take Visible or Opacity into account.