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 *)imageParameters
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)positionParameters
image |
|
|---|---|
color |
|
position |
|
Return Value
a new instance of the texture brush.
Declared In
NChartTextureBrush.h
– initWithImage:
Init brush with image.
- (id)initWithImage:(NSImage *)imageParameters
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)positionParameters
image |
|
|---|---|
color |
|
position |
|
Return Value
the initialized instance of a brush.
Declared In
NChartTextureBrush.h
image
Image of the brush.
@property (nonatomic, strong) NSImage *imageDeclared 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 *backgroundColorDeclared In
NChartTextureBrush.h
position
Position of the texture.
@property (nonatomic, assign) NChartTexturePosition positionSee Also
Declared In
NChartTextureBrush.h