美摄SDK For iOS
3.14.0
|
手绘特效上下文 更多...
#import <NvsPaintingEffectContext.h>
构造函数 | |
(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: |
延长最后一条线 更多... | |
(void) | - resetCanvasWidth:height: |
重新设置画笔的画布 更多... | |
手绘特效上下文
手绘特效上下文类可视作调整手绘效果的入口。可以调整手绘线条的路径,宽度,纹理等
- (void) addStroke: | (NSArray *) | path |
增添一条线
path | 连续点的集合 |
- (void) appendStroke: | (NSArray *) | path |
延长最后一条线
path | 连续点的集合 |
- (void) removeAllStroke |
移除所有线条
- (void) removeLastStroke |
移除上一条线
- (void) resetCanvasWidth: | (int) | width | |
height: | (int) | height | |
重新设置画笔的画布
width | 画布的宽度 |
height | 画布的高度 |
- (void) setBlendMode: | (NvsStrokeBlendMode) | blendMode |
设置混合模式
blendMode | 混合模式 |
- (void) setInternalContext: | (void *) | internalContext |
- (void) setStrokeAnalogAmplitude: | (float) | amplitude |
设置模拟信号振幅
amplitude | 模拟信号振幅 |
- (void) setStrokeAnalogPeriod: | (float) | period |
设置模拟信号周期
period | 模拟信号周期 |
- (void) setStrokeAnalogType: | (NvsStrokeAnalogType) | analogType |
设置线条动态效果使用的模拟信号类别:sin, cos, inverted sin, inverted cos
analogType | 模拟信号类别 |
- (void) setStrokeAnimated: | (bool) | isAnimated |
设置线条是否启用动态效果
isAnimated | 有无动态效果 |
- (void) setStrokeAnimationSpeed: | (float) | speed |
设置线条动态效果速率
speed | 动态效果速率 |
- (void) setStrokeCapStyle: | (NvsStrokeCapStyle) | capStyle |
设置线条首尾样式
capStyle | 线条首尾样式 |
- (void) setStrokeFillMode: | (NvsStrokeFillMode) | fillMode |
设置线条填充模式:颜色,纹理
fillMode | 填充模式 |
- (void) setStrokeGradient: | (NvsColor) | gradient |
设置线条填充颜色
gradient | 线条填充颜色 |
- (void) setStrokeJointStyle: | (NvsStrokeJointStyle) | jointStyle |
设置线条弯曲部分衔接样式
jointStyle | 线条衔接样式 |
- (void) setStrokeTextureFilePath: | (NSString *) | filePath |
设置线条纹理文件路径
filePath | 线条纹理文件路径 |
- (void) setStrokeTextureRepeatTimes: | (unsigned int) | horRepeatTimes | |
VerRepeatTimes: | (unsigned int) | verRepeatTimes | |
设置线条纹理重复次数
horRepeatTimes | 横向纹理重复次数 |
verRepeatTimes | 纵向纹理重复次数 |
- (void) setStrokeTextureWarpType: | (NvsStrokeTextureWarpType) | warpType |
设置线条纹理附件方式
warpType | 线条纹理附加方式 |
- (void) setStrokeWidth: | (float) | width |
设置线条宽度
width | 线条宽度 |