NChartTextureBrush Class Reference
Inherits from | NChartBrush : NSObject |
---|---|
Declared in | NChartTextureBrush.h |
Overview
The NChartTextureBrush class provides the brush that fills the area with a texture (aka image).
+ textureBrushWithImage:
Create brush with image.
+ (NChartTextureBrush *)textureBrushWithImage:(NSImage *)image
Parameters
image |
|
---|
Return Value
a new instance of the texture brush.
Declared In
NChartTextureBrush.h
+ textureBrushWithImage:backgroundColor:position:
Create brush with image, background color and position of texture.
+ (NChartTextureBrush *)textureBrushWithImage:(NSImage *)image backgroundColor:(NSColor *)color position:(NChartTexturePosition)position
Parameters
image |
|
---|---|
color |
|
position |
|
Return Value
a new instance of the texture brush.
Declared In
NChartTextureBrush.h
– initWithImage:
Init brush with image.
- (id)initWithImage:(NSImage *)image
Parameters
image |
|
---|
Return Value
the initialized instance of a brush.
Declared In
NChartTextureBrush.h
– initWithImage:backgroundColor:position:
Init brush with image, background color and position of texture.
- (id)initWithImage:(NSImage *)image backgroundColor:(NSColor *)color position:(NChartTexturePosition)position
Parameters
image |
|
---|---|
color |
|
position |
|
Return Value
the initialized instance of a brush.
Declared In
NChartTextureBrush.h
image
Image of the brush.
@property (nonatomic, strong) NSImage *image
Declared In
NChartTextureBrush.h
backgroundColor
Color that fills the area around the texture (if any). If nil, the area is filled with black color.
@property (nonatomic, strong) NSColor *backgroundColor
Declared In
NChartTextureBrush.h
position
Position of the texture.
@property (nonatomic, assign) NChartTexturePosition position
See Also
Declared In
NChartTextureBrush.h