Table of Contents

Method ConvertColors

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.Framework.dll

ConvertColors(IDirect2DFactory, ReadOnlySpan<ColorRgba128Float>, IColorContext?, Span<ColorRgba128Float>, IColorContext?)

public static void ConvertColors(this IDirect2DFactory factory, ReadOnlySpan<ColorRgba128Float> sourceColors, IColorContext? sourceColorContext, Span<ColorRgba128Float> destinationColors, IColorContext? destinationColorContext)

Parameters

factory IDirect2DFactory
sourceColors ReadOnlySpan<ColorRgba128Float>
sourceColorContext IColorContext
destinationColors Span<ColorRgba128Float>
destinationColorContext IColorContext

ConvertColors(IDirect2DFactory, IReadOnlyList<ColorRgba128Float>, IColorContext?, IColorContext?)

public static IReadOnlyList<ColorRgba128Float> ConvertColors(this IDirect2DFactory factory, IReadOnlyList<ColorRgba128Float> colors, IColorContext? sourceColorContext, IColorContext? destinationColorContext)

Parameters

factory IDirect2DFactory
colors IReadOnlyList<ColorRgba128Float>
sourceColorContext IColorContext
destinationColorContext IColorContext

Returns

IReadOnlyList<ColorRgba128Float>