MeiCam SDK For iOS  3.10.0
Instance Methods | List of all members
NvsPaintingEffectContext Class Reference

Painting special effects context. More...

#import <NvsPaintingEffectContext.h>

Inheritance diagram for NvsPaintingEffectContext:

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...
 

Detailed Description

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.

Warning
NvsPaintingEffectContext类中,所有public API都在UI线程使用!!!

Method Documentation

◆ addStroke:

- (void) addStroke: (NSArray *)  path

Adds a stroke.

Parameters
pathCollection of consecutive points

◆ appendStroke:

- (void) appendStroke: (NSArray *)  path

Extends the last stroke.

Parameters
pathCollection of consecutive points

◆ removeAllStroke

- (void) removeAllStroke

Removes all strokes.

◆ removeLastStroke

- (void) removeLastStroke

Removes the previous stroke.

◆ setBlendMode:

- (void) setBlendMode: (NvsStrokeBlendMode blendMode

Sets blend mode.

Parameters
blendModeBlend mode

◆ setInternalContext:

- (void) setInternalContext: (void *)  internalContext

◆ setStrokeAnalogAmplitude:

- (void) setStrokeAnalogAmplitude: (float)  amplitude

Sets the analog signal amplitude.

Parameters
amplitudeAnalog signal amplitude

◆ setStrokeAnalogPeriod:

- (void) setStrokeAnalogPeriod: (float)  period

Sets the analog signal period.

Parameters
periodAnalog signal period

◆ setStrokeAnalogType:

- (void) setStrokeAnalogType: (NvsStrokeAnalogType analogType

Sets the analog signal category used by line dynamics: sin, cos, inverted sin, inverted cos.

Parameters
analogTypeAnalog signal category

◆ setStrokeAnimated:

- (void) setStrokeAnimated: (bool)  isAnimated

Sets whether the stroke enables dynamic effects.

Parameters
isAnimatedWhether there is dynamic effect.

◆ setStrokeAnimationSpeed:

- (void) setStrokeAnimationSpeed: (float)  speed

Sets the stroke dynamics rate.

Parameters
speedDynamic effect rate

◆ setStrokeCapStyle:

- (void) setStrokeCapStyle: (NvsStrokeCapStyle capStyle

Sets the stroke head and tail style.

Parameters
capStyleStroke head and tail style

◆ setStrokeFillMode:

- (void) setStrokeFillMode: (NvsStrokeFillMode fillMode

Sets stroke fill mode: color,texture.

Parameters
fillModeFill mode

◆ setStrokeGradient:

- (void) setStrokeGradient: (NvsColor gradient

Sets the stroke gradient color.

Parameters
gradientStroke gradient color

◆ setStrokeJointStyle:

- (void) setStrokeJointStyle: (NvsStrokeJointStyle jointStyle

Sets the stroke joint style.

Parameters
jointStyleThe stroke joint style

◆ setStrokeTextureFilePath:

- (void) setStrokeTextureFilePath: (NSString *)  filePath

Sets stroke texture file path.

Parameters
filePathStroke texture file path

◆ setStrokeTextureRepeatTimes:VerRepeatTimes:

- (void) setStrokeTextureRepeatTimes: (unsigned int)  horRepeatTimes
VerRepeatTimes: (unsigned int)  verRepeatTimes 

Sets stroke repeating times.

Parameters
horRepeatTimesHorizontal repeating times.
verRepeatTimesVertical repeating times.

◆ setStrokeTextureWarpType:

- (void) setStrokeTextureWarpType: (NvsStrokeTextureWarpType warpType

Sets the stroke texture warp type.

Parameters
warpTypeStroke texture warp type

◆ setStrokeWidth:

- (void) setStrokeWidth: (float)  width

Sets stroke width.

Parameters
widthStroke width

The documentation for this class was generated from the following file: