iText 8.0.5 API
|
The gradient stop color structure representing the stop color configuration. More...
Public Types |
|
enum | OffsetType { OffsetType.ABSOLUTE, OffsetType.AUTO, OffsetType.RELATIVE } |
Represents the possible offset type More... |
|
enum | HintOffsetType { HintOffsetType.ABSOLUTE_ON_GRADIENT, HintOffsetType.RELATIVE_ON_GRADIENT, HintOffsetType.RELATIVE_BETWEEN_COLORS, HintOffsetType.NONE } |
Represents the possible hint offset type More... |
|
Public Member Functions |
|
GradientColorStop (float[] rgb) | |
Constructor of stop color with with specified rgb color and default ( OffsetType.AUTO ) offset More... |
|
GradientColorStop (float[] rgb, double offset, GradientColorStop.OffsetType offsetType) | |
Constructor of stop color with with specified rgb color and offset More... |
|
GradientColorStop (iText.Kernel.Colors.Gradients.GradientColorStop gradientColorStop, double offset, GradientColorStop.OffsetType offsetType) | |
Constructor that creates the stop with the same color as the another stop and new offset More... |
|
virtual float[] | GetRgbArray () |
Get the stop color rgb value More... |
|
virtual GradientColorStop.OffsetType | GetOffsetType () |
Get the offset type More... |
|
virtual double | GetOffset () |
Get the offset value More... |
|
virtual double | GetHintOffset () |
Get the hint offset value More... |
|
virtual GradientColorStop.HintOffsetType | GetHintOffsetType () |
Get the hint offset type More... |
|
virtual iText.Kernel.Colors.Gradients.GradientColorStop | SetOffset (double offset, GradientColorStop.OffsetType offsetType) |
Set the offset specified by its value and type More... |
|
virtual iText.Kernel.Colors.Gradients.GradientColorStop | SetHint (double hintOffset, GradientColorStop.HintOffsetType hintOffsetType) |
Set the color hint specified by its value and type ( more details ). More... |
|
override bool | Equals (Object o) |
override int | GetHashCode () |
The gradient stop color structure representing the stop color configuration.
The gradient stop color structure representing the stop color configuration. The stop color consists of:
float[]
rgb color array. Values should be in [0, 1] range. All values outside of this range would be adjusted to the nearest corner of the range.double
offset and OffsetType offset type specifies the coordinate of the stop color on the targeting gradient coordinates vectordouble
hint offset and HintOffsetType hint offset type specifies the color transition mid point offset between the current color and the next color Represents the possible hint offset type
Represents the possible offset type
|
inline |
Constructor of stop color with with specified rgb color and default ( OffsetType.AUTO ) offset
rgb | the color value |
|
inline |
Constructor of stop color with with specified rgb color and offset
rgb | the color value |
offset | the offset value. Makes sense only if the offsetType is not OffsetType.AUTO |
offsetType | the offset's type |
|
inline |
Constructor that creates the stop with the same color as the another stop and new offset
gradientColorStop | the gradient stop color from which the color value would be copied |
offset | the new offset. Makes sense only if the offsetType is not OffsetType.AUTO |
offsetType | the new offset's type |
|
inlinevirtual |
Get the hint offset value
|
inlinevirtual |
Get the hint offset type
|
inlinevirtual |
Get the offset value
|
inlinevirtual |
Get the offset type
|
inlinevirtual |
Get the stop color rgb value
|
inlinevirtual |
Set the color hint specified by its value and type ( more details ).
hintOffset | the hint offset's value to be set. Makes sense only if the hintOffsetType is not HintOffsetType.NONE |
hintOffsetType | the hint offset's type to be set |
|
inlinevirtual |
Set the offset specified by its value and type
offset | the offset's value to be set. Makes sense only if the offsetType is not OffsetType.AUTO |
offsetType | the offset's type to be set |