FunctionGradient
GradientA one dimensional colour gradient based on a colour space and channel functions.
Constructors
Properties
ApparentDomain
Gets the domain based on the Gradient.Mapping of this gradient. Note that this domain may be decreasing.
Interaction
Gets a user interaction object based on this gradient. Not all gradient types will have interaction objects.
IntrinsicDomain
#Overrides: Gradient.IntrinsicDomain
Mapping
Gets the mapping from sampling space to gradient space.
Methods
ColourAt
Gets the exact colour at the given parameter.
Returns: True if the parameter is a valid one.
ColourAt
Gets the colour at the given parameter.
Returns: True if the parameter is a valid one.
ColourAtInternal
#Overrides: Gradient.ColourAtInternal
CreateTextureCache
Create a texture cache object for displaying this texture in the UI. The width of the texture bitmap ought to be decided by the callee.
Draw
Draw this gradient as a horizontal progression. This method is optimized for speed and may not necessarily yield the exact result.
Draw
Draw this gradient as a horizontal progression. This method is optimized for speed and may not necessarily yield the exact result.
public void Draw()
Graphics
graphics,
Graphics object to draw with.
RectangleF
rectangle
Rectangle to fill.
IsConstant
Tests whether this gradient has a zero-length domain and whether the colours on either side are identical.
Returns: True if gradient only has a single colour.
Remap
Create a new gradient which is similar to this gradient but remapped to a different interval.
Returns: Mapped gradient.
RemapAutomatic
Remap this gradient to a new domain if the mapping has automatic lower or upper bounds.
ToBitmap
Render this gradient to a bitmap using exact per-pixel colours.
Returns: Bitmap.
ToBitmap
Render this gradient to a bitmap.
Returns: Bitmap.
WithAutomaticLimits
Adjust the automatic bounds flags for this gradient.