NERtc iOS SDK  V4.4.301
属性 | 所有成员列表
NERtcTextWatermarkConfig类 参考

Sets the parameters for text watermarks 更多...

#import <NERtcEngineBase.h>

类 NERtcTextWatermarkConfig 继承关系图:

属性

NSString * content
 Text content. 更多...
 
CGFloat fontSize
 Specifies the font size. 更多...
 
UIColor * fontColor
 Specifies the font color. 更多...
 
UIColor * wmColor
 The background color in the watermark frame. 更多...
 
CGRect frame
 The frame layout of the image. 更多...
 

详细描述

Sets the parameters for text watermarks

You can add up to 10 text watermarks.

属性说明

◆ content

- (NSString*) content
readwritenonatomiccopy

Text content.

If the value is set to empty, no text watermark is added.

  • The length of the string is unlimited. The final display is affected by the font size and the size of the watermark frame. The part beyond the watermark frame is not displayed.
  • If the width of the watermark frame is set, when the length of the text content exceeds the width of the watermark frame, the text automatically wraps. If the text exceeds the height of the watermark frame, the excess part is not displayed.
  • When the width and height of the watermark frame are not set, the text does not wrap, and the part beyond the watermark frame is not be displayed.

◆ fontColor

- (UIColor*) fontColor
readwritenonatomicstrong

Specifies the font color.

ARGB format. The default value is 0xFFFFFFFF, which is white.

◆ fontSize

- (CGFloat) fontSize
readwritenonatomicassign

Specifies the font size.

The default value is 17.

◆ frame

- (CGRect) frame
readwritenonatomicassign

The frame layout of the image.

If the width or height is not set, or both are set to 0, the watermark is inserted based on the original image size.

◆ wmColor

- (UIColor*) wmColor
readwritenonatomicstrong

The background color in the watermark frame.

ARGB format. The default value is 0x88888888, which is gray. Transparency setting is supported.


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