Table of Contents

Method ConvertColors

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

ConvertColors(IDeviceContext, ReadOnlySpan<ColorRgba128Float>, IDeviceColorContext?, Span<ColorRgba128Float>, IDeviceColorContext?)

public static void ConvertColors(this IDeviceContext deviceContext, ReadOnlySpan<ColorRgba128Float> sourceColors, IDeviceColorContext? sourceColorContext, Span<ColorRgba128Float> destinationColors, IDeviceColorContext? destinationColorContext)

Parameters

deviceContext IDeviceContext
sourceColors ReadOnlySpan<ColorRgba128Float>
sourceColorContext IDeviceColorContext
destinationColors Span<ColorRgba128Float>
destinationColorContext IDeviceColorContext

ConvertColors(IDeviceContext, IReadOnlyList<ColorRgba128Float>, IDeviceColorContext?, IDeviceColorContext?)

public static IReadOnlyList<ColorRgba128Float> ConvertColors(this IDeviceContext deviceContext, IReadOnlyList<ColorRgba128Float> sourceColors, IDeviceColorContext? sourceColorContext, IDeviceColorContext? destinationColorContext)

Parameters

deviceContext IDeviceContext
sourceColors IReadOnlyList<ColorRgba128Float>
sourceColorContext IDeviceColorContext
destinationColorContext IDeviceColorContext

Returns

IReadOnlyList<ColorRgba128Float>