MeiCam SDK For iOS
3.14.0
|
Painting special effects context. More...
#import <NvsPaintingEffectContext.h>
Instance Methods | |
(void) | - setInternalContext: |
(void) | - setBlendMode: |
Sets blend mode. More... | |
(void) | - setStrokeWidth: |
Sets stroke width. More... | |
(void) | - setStrokeCapStyle: |
Sets the stroke head and tail style. More... | |
(void) | - setStrokeJointStyle: |
Sets the stroke joint style. More... | |
(void) | - setStrokeFillMode: |
Sets stroke fill mode: color,texture. More... | |
(void) | - setStrokeGradient: |
Sets the stroke gradient color. More... | |
(void) | - setStrokeTextureFilePath: |
Sets stroke texture file path. More... | |
(void) | - setStrokeTextureWarpType: |
Sets the stroke texture warp type. More... | |
(void) | - setStrokeTextureRepeatTimes:VerRepeatTimes: |
Sets stroke repeating times. More... | |
(void) | - setStrokeAnimated: |
Sets whether the stroke enables dynamic effects. More... | |
(void) | - setStrokeAnimationSpeed: |
Sets the stroke dynamics rate. More... | |
(void) | - setStrokeAnalogType: |
Sets the analog signal category used by line dynamics: sin, cos, inverted sin, inverted cos. More... | |
(void) | - setStrokeAnalogAmplitude: |
Sets the analog signal amplitude. More... | |
(void) | - setStrokeAnalogPeriod: |
Sets the analog signal period. More... | |
(void) | - removeAllStroke |
Removes all strokes. More... | |
(void) | - removeLastStroke |
Removes the previous stroke. More... | |
(void) | - addStroke: |
Adds a stroke. More... | |
(void) | - appendStroke: |
Extends the last stroke. More... | |
(void) | - resetCanvasWidth:height: |
Reset painting canvas. More... | |
Painting special effects context.
The painting effect context class can be used as an entry to adjust the painting effect. Users can adjust the path, width, texture, etc. of the painting strokes.
- (void) addStroke: | (NSArray *) | path |
Adds a stroke.
path | Collection of consecutive points |
- (void) appendStroke: | (NSArray *) | path |
Extends the last stroke.
path | Collection of consecutive points |
- (void) removeAllStroke |
Removes all strokes.
- (void) removeLastStroke |
Removes the previous stroke.
- (void) resetCanvasWidth: | (int) | width | |
height: | (int) | height | |
Reset painting canvas.
width | canvas size width |
height | canvas size height |
- (void) setBlendMode: | (NvsStrokeBlendMode) | blendMode |
Sets blend mode.
blendMode | Blend mode |
- (void) setInternalContext: | (void *) | internalContext |
- (void) setStrokeAnalogAmplitude: | (float) | amplitude |
Sets the analog signal amplitude.
amplitude | Analog signal amplitude |
- (void) setStrokeAnalogPeriod: | (float) | period |
Sets the analog signal period.
period | Analog signal period |
- (void) setStrokeAnalogType: | (NvsStrokeAnalogType) | analogType |
Sets the analog signal category used by line dynamics: sin, cos, inverted sin, inverted cos.
analogType | Analog signal category |
- (void) setStrokeAnimated: | (bool) | isAnimated |
Sets whether the stroke enables dynamic effects.
isAnimated | Whether there is dynamic effect. |
- (void) setStrokeAnimationSpeed: | (float) | speed |
Sets the stroke dynamics rate.
speed | Dynamic effect rate |
- (void) setStrokeCapStyle: | (NvsStrokeCapStyle) | capStyle |
Sets the stroke head and tail style.
capStyle | Stroke head and tail style |
- (void) setStrokeFillMode: | (NvsStrokeFillMode) | fillMode |
Sets stroke fill mode: color,texture.
fillMode | Fill mode |
- (void) setStrokeGradient: | (NvsColor) | gradient |
Sets the stroke gradient color.
gradient | Stroke gradient color |
- (void) setStrokeJointStyle: | (NvsStrokeJointStyle) | jointStyle |
Sets the stroke joint style.
jointStyle | The stroke joint style |
- (void) setStrokeTextureFilePath: | (NSString *) | filePath |
Sets stroke texture file path.
filePath | Stroke texture file path |
- (void) setStrokeTextureRepeatTimes: | (unsigned int) | horRepeatTimes | |
VerRepeatTimes: | (unsigned int) | verRepeatTimes | |
Sets stroke repeating times.
horRepeatTimes | Horizontal repeating times. |
verRepeatTimes | Vertical repeating times. |
- (void) setStrokeTextureWarpType: | (NvsStrokeTextureWarpType) | warpType |
Sets the stroke texture warp type.
warpType | Stroke texture warp type |
- (void) setStrokeWidth: | (float) | width |
Sets stroke width.
width | Stroke width |