美摄SDK For iOS  3.10.1
构造函数 | 所有成员列表
NvsPaintingEffectContext类 参考

手绘特效上下文 更多...

#import <NvsPaintingEffectContext.h>

类 NvsPaintingEffectContext 继承关系图:

构造函数

(void) - setInternalContext:
 
(void) - setBlendMode:
 设置混合模式 更多...
 
(void) - setStrokeWidth:
 设置线条宽度 更多...
 
(void) - setStrokeCapStyle:
 设置线条首尾样式 更多...
 
(void) - setStrokeJointStyle:
 设置线条弯曲部分衔接样式 更多...
 
(void) - setStrokeFillMode:
 设置线条填充模式:颜色,纹理 更多...
 
(void) - setStrokeGradient:
 设置线条填充颜色 更多...
 
(void) - setStrokeTextureFilePath:
 设置线条纹理文件路径 更多...
 
(void) - setStrokeTextureWarpType:
 设置线条纹理附件方式 更多...
 
(void) - setStrokeTextureRepeatTimes:VerRepeatTimes:
 设置线条纹理重复次数 更多...
 
(void) - setStrokeAnimated:
 设置线条是否启用动态效果 更多...
 
(void) - setStrokeAnimationSpeed:
 设置线条动态效果速率 更多...
 
(void) - setStrokeAnalogType:
 设置线条动态效果使用的模拟信号类别:sin, cos, inverted sin, inverted cos 更多...
 
(void) - setStrokeAnalogAmplitude:
 设置模拟信号振幅 更多...
 
(void) - setStrokeAnalogPeriod:
 设置模拟信号周期 更多...
 
(void) - removeAllStroke
 移除所有线条 更多...
 
(void) - removeLastStroke
 移除上一条线 更多...
 
(void) - addStroke:
 增添一条线 更多...
 
(void) - appendStroke:
 延长最后一条线 更多...
 

详细描述

手绘特效上下文

手绘特效上下文类可视作调整手绘效果的入口。可以调整手绘线条的路径,宽度,纹理等

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

函数文档

◆ addStroke:

- (void) addStroke: (NSArray *)  path

增添一条线

参数
path连续点的集合

◆ appendStroke:

- (void) appendStroke: (NSArray *)  path

延长最后一条线

参数
path连续点的集合

◆ removeAllStroke

- (void) removeAllStroke

移除所有线条

◆ removeLastStroke

- (void) removeLastStroke

移除上一条线

◆ setBlendMode:

- (void) setBlendMode: (NvsStrokeBlendMode blendMode

设置混合模式

参数
blendMode混合模式

◆ setInternalContext:

- (void) setInternalContext: (void *)  internalContext

◆ setStrokeAnalogAmplitude:

- (void) setStrokeAnalogAmplitude: (float)  amplitude

设置模拟信号振幅

参数
amplitude模拟信号振幅

◆ setStrokeAnalogPeriod:

- (void) setStrokeAnalogPeriod: (float)  period

设置模拟信号周期

参数
period模拟信号周期

◆ setStrokeAnalogType:

- (void) setStrokeAnalogType: (NvsStrokeAnalogType analogType

设置线条动态效果使用的模拟信号类别:sin, cos, inverted sin, inverted cos

参数
analogType模拟信号类别

◆ setStrokeAnimated:

- (void) setStrokeAnimated: (bool)  isAnimated

设置线条是否启用动态效果

参数
isAnimated有无动态效果

◆ setStrokeAnimationSpeed:

- (void) setStrokeAnimationSpeed: (float)  speed

设置线条动态效果速率

参数
speed动态效果速率

◆ setStrokeCapStyle:

- (void) setStrokeCapStyle: (NvsStrokeCapStyle capStyle

设置线条首尾样式

参数
capStyle线条首尾样式

◆ setStrokeFillMode:

- (void) setStrokeFillMode: (NvsStrokeFillMode fillMode

设置线条填充模式:颜色,纹理

参数
fillMode填充模式

◆ setStrokeGradient:

- (void) setStrokeGradient: (NvsColor gradient

设置线条填充颜色

参数
gradient线条填充颜色

◆ setStrokeJointStyle:

- (void) setStrokeJointStyle: (NvsStrokeJointStyle jointStyle

设置线条弯曲部分衔接样式

参数
jointStyle线条衔接样式

◆ setStrokeTextureFilePath:

- (void) setStrokeTextureFilePath: (NSString *)  filePath

设置线条纹理文件路径

参数
filePath线条纹理文件路径

◆ setStrokeTextureRepeatTimes:VerRepeatTimes:

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

设置线条纹理重复次数

参数
horRepeatTimes横向纹理重复次数
verRepeatTimes纵向纹理重复次数

◆ setStrokeTextureWarpType:

- (void) setStrokeTextureWarpType: (NvsStrokeTextureWarpType warpType

设置线条纹理附件方式

参数
warpType线条纹理附加方式

◆ setStrokeWidth:

- (void) setStrokeWidth: (float)  width

设置线条宽度

参数
width线条宽度

该类的文档由以下文件生成: