EmfPlusLinearGradientBrushData

Inheritance: java.lang.Object, com.aspose.imaging.fileformats.emf.MetaObject, com.aspose.imaging.fileformats.emf.emfplus.objects.EmfPlusObject, com.aspose.imaging.fileformats.emf.emfplus.objects.EmfPlusStructureObjectType, com.aspose.imaging.fileformats.emf.emfplus.objects.EmfPlusBaseBrushData

public final class EmfPlusLinearGradientBrushData extends EmfPlusBaseBrushData

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

Constructors

ConstructorDescription
EmfPlusLinearGradientBrushData()

Methods

MethodDescription
getBrushDataFlags()Gets or sets the brush data flags.
setBrushDataFlags(int value)Gets or sets the brush data flags.
getEndArgb32Color()Gets or sets the end color.
setEndArgb32Color(int value)Gets or sets the end color.
getOptionalData()Gets or sets the optional data.
setOptionalData(EmfPlusLinearGradientBrushOptionalData value)Gets or sets the optional data.
getRectF()Gets or sets the rect f.
setRectF(RectangleF value)Gets or sets the rect f.
getStartArgb32Color()Gets or sets the start color.
setStartArgb32Color(int value)Gets or sets the start color.
getWrapMode()Gets or sets the wrap mode.
setWrapMode(int value)Gets or sets the wrap mode.

EmfPlusLinearGradientBrushData()

public EmfPlusLinearGradientBrushData()

getBrushDataFlags()

public int getBrushDataFlags()

Gets or sets the brush data flags.

Value: 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).

Returns: int

setBrushDataFlags(int value)

public void setBrushDataFlags(int value)

Gets or sets the brush data flags.

Value: 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).

Parameters:

ParameterTypeDescription
valueint

getEndArgb32Color()

public int getEndArgb32Color()

Gets or sets the end color.

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

Returns: int

setEndArgb32Color(int value)

public void setEndArgb32Color(int value)

Gets or sets the end color.

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

Parameters:

ParameterTypeDescription
valueint

getOptionalData()

public EmfPlusLinearGradientBrushOptionalData getOptionalData()

Gets or sets the optional data.

Value: 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.

Returns: EmfPlusLinearGradientBrushOptionalData

setOptionalData(EmfPlusLinearGradientBrushOptionalData value)

public void setOptionalData(EmfPlusLinearGradientBrushOptionalData value)

Gets or sets the optional data.

Value: 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.

Parameters:

ParameterTypeDescription
valueEmfPlusLinearGradientBrushOptionalData

getRectF()

public RectangleF getRectF()

Gets or sets the rect f.

Value: 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.

Returns: RectangleF

setRectF(RectangleF value)

public void setRectF(RectangleF value)

Gets or sets the rect f.

Value: 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.

Parameters:

ParameterTypeDescription
valueRectangleF

getStartArgb32Color()

public int getStartArgb32Color()

Gets or sets the start color.

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

Returns: int

setStartArgb32Color(int value)

public void setStartArgb32Color(int value)

Gets or sets the start color.

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

Parameters:

ParameterTypeDescription
valueint

getWrapMode()

public int getWrapMode()

Gets or sets the wrap mode.

Value: 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.

Returns: int

setWrapMode(int value)

public void setWrapMode(int value)

Gets or sets the wrap mode.

Value: 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.

Parameters:

ParameterTypeDescription
valueint