GetGradientData Method (IHatchPattern)

GetGradientData Method (IHatchPattern) | Send Feedback
See Also

Color1[out]
  Color; valid for both one- or two-color fills

Color2[out]
  Color; only valid for two-color fills

IsCentered[out]
  True if color fill is symmetric within the boundaries, false if not

GradientAngle[out]
  Angle of color gradation between 0 and 360°; specify using 15° increments

Gets the specified color fill gradient data.

# Syntax

Visual Basic |
--- | ---
    Sub GetGradientData( _
       ByRef Color1 As Color, _
       ByRef Color2 As Color, _
       ByRef IsCentered As System.Boolean, _
       ByRef GradientAngle As System.Double _
    )

C# |
--- | ---
    void GetGradientData(
       out Color Color1,
       out Color Color2,
       out System.bool IsCentered,
       out System.double GradientAngle
    )

JavaScript |
--- | ---
    GetGradientData(
    ) : {
       Color1 : dsColor,
       Color2 : dsColor,
       IsCentered : Boolean,
       GradientAngle : Number
    }

COM native C++ |
--- | ---
    HRESULT GetGradientData(
       IColor** Color1,
       IColor** Color2,
       VARIANT_BOOL* IsCentered,
       DOUBLE* GradientAngle
    )

C++ |
--- | ---
    DSRESULT GetGradientData(
       dsColor** Color1,
       dsColor** Color2,
       bool* IsCentered,
       double* GradientAngle
    )

#### Parameters

Color1[out]
  Color; valid for both one- or two-color fills
Color2[out]
  Color; only valid for two-color fills
IsCentered[out]
  True if color fill is symmetric within the boundaries, false if not
GradientAngle[out] or Return Value
  Angle of color gradation between 0 and 360°; specify using 15° increments

# Remarks

This method is valid only when IHatchPattern:GetFillType is dsHatchFillType_e.dsHatchFillType_Gradient.

# See Also

####

IHatchPattern Interface
IHatchPattern Members
IHatchPattern::SetGradientData Method
IHatchPattern::GetGradientStyle Method ()
IHatchPattern::SetGradientStyle Method ()

# Availability

DraftSight V1R1.3