Package im.zego.zegoexpress.entity
Class ZegoFontStyle
- java.lang.Object
-
- im.zego.zegoexpress.entity.ZegoFontStyle
-
public class ZegoFontStyle extends java.lang.Object
Font style. Description: Font style configuration, can be used to configure font type, font size, font color, font transparency. Use cases: Set text watermark in manual stream mixing scene, such as Co-hosting.
-
-
Field Summary
Fields Modifier and Type Field Description boolean
border
Whether the font has a border.int
borderColor
Font border color, the calculation formula is: R + G x 256 + B x 65536, the value range of R (red), G (green), and B (blue) [0,255].int
color
Font color, the calculation formula is: R + G x 256 + B x 65536, the value range of R (red), G (green), and B (blue) [0,255].int
size
Font size in px.int
transparency
Font transparency.ZegoFontType
type
Font type.
-
Constructor Summary
Constructors Constructor Description ZegoFontStyle()
Create a default font style object.
-
-
-
Field Detail
-
type
public ZegoFontType type
Font type. Required: False. Default value: Source han sans [ZegoFontTypeSourceHanSans]
-
size
public int size
Font size in px. Required: False. Default value: 24. Value range: [12,100].
-
color
public int color
Font color, the calculation formula is: R + G x 256 + B x 65536, the value range of R (red), G (green), and B (blue) [0,255]. Required: False. Default value: 16777215(white). Value range: [0,16777215].
-
transparency
public int transparency
Font transparency. Required: False. Default value: 0. Value range: [0,100], 100 is completely opaque, 0 is completely transparent.
-
border
public boolean border
Whether the font has a border. Required: False. Default value: False. Value range: True/False.
-
borderColor
public int borderColor
Font border color, the calculation formula is: R + G x 256 + B x 65536, the value range of R (red), G (green), and B (blue) [0,255]. Required: False. Default value: 0. Value range: [0,16777215].
-
-