Property SecondaryColor
- Namespace
- PaintDotNet.Effects
- Assembly
- PaintDotNet.Effects.Core.dll
SecondaryColor
Gets the secondary color selected by the user.
ManagedColor SecondaryColor { get; }
Property Value
Remarks
This color can be used with IndirectUI by using a ManagedColorProperty.
This color can be converted to the color space necessary for a GpuEffect's
rendering with Direct2D by using the Get(ManagedColor, IDeviceContext)
extension method.
This color can be converted to the color space necessary for a BitmapEffect's
rendering by using either the Get(IColorContext) method or the
GetBgra32(ManagedColor, IColorContext) extension method.
Use the IColorContext provided by the Environment.Document.ColorContext
property.
For UI purposes, which usually uses the sRGB color space, you can use the
GetSrgb(ManagedColor) extension method.