[]
ID2D1GradientStopCollection1
[Guid("ae1572f4-5dd0-4777-998b-9279472ae63b")]
public class GradientStopCollection1 : GradientStopCollection, IDisposable, IUnknown
Initializes a new instance of the GradientStopCollection1 class.
public GradientStopCollection1(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
Initializes a new instance of the GradientStopCollection1 class.
public static GradientStopCollection1 Create(DeviceContext context, GradientStop[] straightAlphaGradientStops, ColorSpace preInterpolationSpace, ColorSpace postInterpolationSpace, BufferPrecision bufferPrecision, ExtendMode extendMode, ColorInterpolationMode colorInterpolationMode)
context
DeviceContextThe context.
straightAlphaGradientStops
GradientStop[]An array of color values and offsets.
preInterpolationSpace
ColorSpaceSpecifies both the input color space and the space in which the color interpolation occurs.
postInterpolationSpace
ColorSpaceThe color space that colors will be converted to after interpolation occurs.
bufferPrecision
BufferPrecisionThe precision of the texture used to hold interpolated values.
extendMode
ExtendModeDefines how colors outside of the range defined by the stop collection are determined.
colorInterpolationMode
ColorInterpolationModeThe new gradient stop collection.
This method linearly interpolates between the color stops. An optional color space conversion is applied after interpolation. Whether and how this gamma conversion is applied is determined before and after interpolation. This method will fail if the device context does not support the requested buffer precision.Additional ReferencesD2D1_GRADIENT_STOP, D2D1_GAMMA_CONVERSION, BufferPrecision, ExtendMode, GradientStopCollectionRequirementsMinimum supported operating systemSame as Interface / Class Highest IRQL levelN/A (user mode) Callable from DlllMain()No Callable from services and session 0Yes Callable from UI threadYes?
D2D1_BUFFER_PRECISION ID2D1GradientStopCollection1::GetBufferPrecision()
public BufferPrecision GetBufferPrecision()
D2D1_COLOR_INTERPOLATION_MODE ID2D1GradientStopCollection1::GetColorInterpolationMode()
public ColorInterpolationMode GetColorInterpolationMode()
void ID2D1GradientStopCollection1::GetGradientStops1([Out, Buffer] D2D1_GRADIENT_STOP* gradientStops,[In] unsigned int gradientStopsCount)
public void GetGradientStops1(GradientStop[] gradientStops, int gradientStopsCount)
gradientStops
GradientStop[]gradientStopsCount
intD2D1_COLOR_SPACE ID2D1GradientStopCollection1::GetPostInterpolationSpace()
public ColorSpace GetPostInterpolationSpace()
D2D1_COLOR_SPACE ID2D1GradientStopCollection1::GetPreInterpolationSpace()
public ColorSpace GetPreInterpolationSpace()
Performs an explicit conversion from System.IntPtr to GradientStopCollection1.
public static explicit operator GradientStopCollection1(IntPtr nativePointer)
nativePointer
System.IntPtr