public final class EmfPlusLinearGradientBrushOptionalData extends EmfPlusStructureObjectType
The EmfPlusLinearGradientBrushOptionalData object specifies optional data for a linear gradient brush.
Constructor and Description |
---|
EmfPlusLinearGradientBrushOptionalData() |
Modifier and Type | Method and Description |
---|---|
EmfPlusBlendBase[] |
getBlendPattern()
Gets or sets an optional blend pattern for the linear gradient brush.
|
EmfPlusBlendFactors |
getBlendPatternAsBlendFactorsH()
Gets the blend pattern as blend factors h.
|
EmfPlusBlendFactors |
getBlendPatternAsBlendFactorsV()
Gets the blend pattern as blend factors v.
|
EmfPlusBlendColors |
getBlendPatternAsPresetColors()
Gets the blend pattern as preset colors.
|
Matrix |
getTransformMatrix()
Gets or sets an optional EmfPlusTransformMatrix object (section 2.2.2.47) that specifies a
world space to device space transform for the linear gradient brush.
|
void |
setBlendPattern(EmfPlusBlendBase[] value)
Gets or sets an optional blend pattern for the linear gradient brush.
|
void |
setTransformMatrix(Matrix value)
Gets or sets an optional EmfPlusTransformMatrix object (section 2.2.2.47) that specifies a
world space to device space transform for the linear gradient brush.
|
public EmfPlusLinearGradientBrushOptionalData()
public Matrix getTransformMatrix()
Gets or sets an optional EmfPlusTransformMatrix object (section 2.2.2.47) that specifies a world space to device space transform for the linear gradient brush. This field MUST be present if the BrushDataTransform flag is set in the BrushDataFlags field of the EmfPlusLinearGradientBrushData object.
public void setTransformMatrix(Matrix value)
Gets or sets an optional EmfPlusTransformMatrix object (section 2.2.2.47) that specifies a world space to device space transform for the linear gradient brush. This field MUST be present if the BrushDataTransform flag is set in the BrushDataFlags field of the EmfPlusLinearGradientBrushData object.
public EmfPlusBlendBase[] getBlendPattern()
Gets or sets an optional blend pattern for the linear gradient brush. If this field is present, it MUST contain either an EmfPlusBlendColors object (section 2.2.2.4), or one or two EmfPlusBlendFactors objects (section 2.2.2.5), but it MUST NOT contain both. The table below shows the valid combinations of EmfPlusLinearGradientBrushData BrushData flags and the corresponding blend patterns: EmfPlusBlendFactors
public void setBlendPattern(EmfPlusBlendBase[] value)
Gets or sets an optional blend pattern for the linear gradient brush. If this field is present, it MUST contain either an EmfPlusBlendColors object (section 2.2.2.4), or one or two EmfPlusBlendFactors objects (section 2.2.2.5), but it MUST NOT contain both. The table below shows the valid combinations of EmfPlusLinearGradientBrushData BrushData flags and the corresponding blend patterns: EmfPlusBlendFactors
public EmfPlusBlendColors getBlendPatternAsPresetColors()
Gets the blend pattern as preset colors.
Value: The blend pattern as preset colors.public EmfPlusBlendFactors getBlendPatternAsBlendFactorsH()
Gets the blend pattern as blend factors h.
Value: The blend pattern as blend factors h.public EmfPlusBlendFactors getBlendPatternAsBlendFactorsV()
Gets the blend pattern as blend factors v.
Value: The blend pattern as blend factors v.