Table of Contents

Class EmfPlusLinearGradientBrushData

Namespace
Aspose.Imaging.FileFormats.Emf.EmfPlus.Objects
Assembly
Aspose.Imaging.dll

The EmfPlusLinearGradientBrushData object specifies a linear gradient for a graphics brush.

public sealed class EmfPlusLinearGradientBrushData : EmfPlusBaseBrushData
Inheritance
EmfPlusLinearGradientBrushData
Inherited Members

Constructors

EmfPlusLinearGradientBrushData()

public EmfPlusLinearGradientBrushData()

Properties

BrushDataFlags

Gets or sets the brush data flags.

public EmfPlusBrushDataFlags BrushDataFlags { get; set; }

Property Value

EmfPlusBrushDataFlags

BrushDataFlags (4 bytes): A 32-bit unsigned integer that specifies the data in the OptionalData field. This value MUST be composed of EmfPlusBrushDataFlags (section 2.1.2.1).

EndArgb32Color

Gets or sets the end color.

public int EndArgb32Color { get; set; }

Property Value

int

An EmfPlusARGB object that specifies the color at the ending boundary point of the linear gradient brush.

OptionalData

Gets or sets the optional data.

public EmfPlusLinearGradientBrushOptionalData OptionalData { get; set; }

Property Value

EmfPlusLinearGradientBrushOptionalData

An optional EmfPlusLinearGradientBrushOptionalData object (section 2.2.2.25) that specifies additional data for the linear gradient brush. The specific contents of this field are determined by the value of the BrushDataFlags field.

RectF

Gets or sets the rect f.

public RectangleF RectF { get; set; }

Property Value

RectangleF

An EmfPlusRectF object (section 2.2.2.39) that specifies the starting and ending points of the gradient line. The upper-left corner of the rectangle is the starting point. The lower-right corner is the ending point.

StartArgb32Color

Gets or sets the start color.

public int StartArgb32Color { get; set; }

Property Value

int

An EmfPlusARGB object (section 2.2.2.1) that specifies the color at the starting boundary point of the linear gradient brush.

WrapMode

Gets or sets the wrap mode.

public EmfPlusWrapMode WrapMode { get; set; }

Property Value

EmfPlusWrapMode

A 32-bit signed integer from the WrapMode enumeration (section 2.1.1.34) that specifies whether to paint the area outside the boundary of the brush. When painting outside the boundary, the wrap mode specifies how the color gradient is repeated.