The LinearGradientBrush class is used for background linear gradient fill.
LinearGradientBrush
<NSCoding>
Gradient is redrawn along the straight line, start and end points of which are determined by the startPoint and endPoint properties. Coordinates of these points are defined relative to the fill area and must be in the range ([0; 1]; [0; 1]). (0; 0) is the coordinate of the bottom left corner of the painted area; (1; 1) is the coordinate of the upper right corner.
Colors of the output gradient are interpolated along this line. A set and offset of colors are determined by the gradientStops property.
startPoint. Gradient start point.
endPoint. Gradient end point.
gradientStops. Gradient transition point.
calcMaxDistance:toEdges:. Calculates maximum distance between the specified point and borders of rectangular area.
gradient. Creates an instance of gradient object.
applyToContext:path:rect:. Applies brush parameters for the specified graphic context.
dumpConfiguration. Returns the object, to which partial brush parameters are loaded.
dumpConfigurationToDict. Returns the object to which the brush parameters are loaded.
dumpGradientStops. Returns object that stores parameters of gradient colors and their positions.
dumpConfigurationToDict. Returns the object to which the brush parameters are loaded.
dumpConfiguration. Returns the object, to which partial brush parameters are loaded.
dumpConfigurationToDict. Returns the object to which the brush parameters are loaded.
brushWithDict:. Creates a brush instance according to the specified parameters.
See also: