alexa
menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class NativePaint.GRADIENT_FILL

    Defines the constants that specify the types of fill options for gradient style.

    Inheritance
    System.Object
    NativePaint.GRADIENT_FILL
    Namespace: Syncfusion.WinForms.Core
    Assembly: Syncfusion.Shared.Base.dll
    Syntax
    public sealed class GRADIENT_FILL : Enum

    Fields

    OP_FLAG

    Optional flag.

    Declaration
    public const NativePaint.GRADIENT_FILL OP_FLAG
    Field Value
    Type
    NativePaint.GRADIENT_FILL

    RECT_H

    In this mode, two endpoints describe a rectangle. The rectangle is defined to have a constant color (specified by the TRIVERTEX structure) for the left and right edges. GDI interpolates the color from the left to right edge and fills the interior.

    Declaration
    public const NativePaint.GRADIENT_FILL RECT_H
    Field Value
    Type
    NativePaint.GRADIENT_FILL

    RECT_V

    In this mode, two endpoints describe a rectangle. The rectangle is defined to have a constant color (specified by the TRIVERTEX structure) for the top and bottom edges. GDI interpolates the color from the top to bottom edge and fills the interior.

    Declaration
    public const NativePaint.GRADIENT_FILL RECT_V
    Field Value
    Type
    NativePaint.GRADIENT_FILL

    TRIANGLE

    In this mode, an array of TRIVERTEX structures is passed to GDI along with a list of array indexes that describe separate triangles. GDI performs linear interpolation between triangle vertices and fills the interior. Drawing is done directly in 24- and 32-bpp modes. Dithering is performed in 16-, 8-, 4-, and 1-bpp mode.

    Declaration
    public const NativePaint.GRADIENT_FILL TRIANGLE
    Field Value
    Type
    NativePaint.GRADIENT_FILL
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved