NChartBrush Class Reference
Inherits from | NSObject |
---|---|
Conforms to | NSCopying |
Declared in | NChartBrush.h |
Overview
The NChartBrush class provides common methods of the brush that can be used to fill some areas.
– scaleColorWithRScale:gScale:bScale:
Scale components of brush’s colors (if any) by given values. Each component of each color is multiplied by a corresponding scale factor.
- (void)scaleColorWithRScale:(float)rScale gScale:(float)gScale bScale:(float)bScale
Parameters
rScale |
|
---|---|
gScale |
|
bScale |
|
Declared In
NChartBrush.h
– scaleColorWithHScale:sScale:vScale:
Scale components of brush’s colors (if any) according to HSV color model. HSV-representation of each component of each color is multiplied by corresponding scale factor.
- (void)scaleColorWithHScale:(float)hScale sScale:(float)sScale vScale:(float)vScale
Parameters
hScale |
|
---|---|
sScale |
|
vScale |
|
Declared In
NChartBrush.h
opacity
Opacity of the brush in interval 0..1, 0 – full transparency, 1 – full opacity. The default value is 1.
@property (nonatomic, assign) float opacity
Declared In
NChartBrush.h
shadingModel
Shading model that should be applied to an object if it’s painted with this brush. You should understand that different shading models are not always supported. For example, if you paint some background with the brush, only plain shading (read – no shading) is possible. But if you paint some 3d-object, different models can be chosen (it is possible to draw this object as if it was lightened by some light source).
@property (nonatomic, assign) NChartShadingModel shadingModel
See Also
Declared In
NChartBrush.h