Table of Contents

Method GetRenderColorContext

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

GetRenderColorContext(in PixelFormat)

Gets a color context defining the color space for the effect's rendering output. This is the color space that will be used by the Render(void*, int, nint, in PixelFormat, RectInt32) method when it is called with the same PixelFormat.

This method may only be called after Initialize(BitmapEffectInitializeInfo) has been called.

IColorContext GetRenderColorContext(in PixelFormat renderPixelFormat)

Parameters

renderPixelFormat PixelFormat

Returns

IColorContext

Remarks

The color context may be different depending on the PixelFormat. You can call this method with different pixel formats if you need to convert an effect's rendering output between them.

Exceptions

InvalidOperationException

Initialize(BitmapEffectInitializeInfo) must be called first.