ImageWatermarkLayer
此内容尚不支持你的语言。
Defined in: index.ts:893
Options for one image watermark layer.
Example
Section titled “Example”src: require('./images/logo.png'), scale: 0.5, rotate: 45, alpha: 0.5 position: { X: 10, Y: 10, // or // position: Position.center}Extends
Section titled “Extends”Properties
Section titled “Properties”alpha?
Section titled “alpha?”
optionalalpha?:number
Defined in: index.ts:726
Image opacity from 0 (transparent) to 1 (opaque).
Default Value
Section titled “Default Value”1Example
Section titled “Example”alpha: 0.5Inherited from
Section titled “Inherited from”position?
Section titled “position?”
optionalposition?:PositionOptions
Defined in: index.ts:744
Inherited from
Section titled “Inherited from”WatermarkImageOptions.position
rotate?
Section titled “rotate?”
optionalrotate?:number
Defined in: index.ts:719
rotate image rotate 0-360
Default Value
Section titled “Default Value”0Example
Section titled “Example”rotate: 45Inherited from
Section titled “Inherited from”scale?
Section titled “scale?”
optionalscale?:number
Defined in: index.ts:712
image scale >0
Default Value
Section titled “Default Value”1Example
Section titled “Example”scale: 1Inherited from
Section titled “Inherited from”src:
any
Defined in: index.ts:705
Image source. Supports React Native image sources and base64 data URLs.
Example
Section titled “Example”src: require('./images/logo.png')Inherited from
Section titled “Inherited from”trimTransparentPadding?
Section titled “trimTransparentPadding?”
optionaltrimTransparentPadding?:boolean
Defined in: index.ts:750
Remove fully transparent outer rows and columns before scaling, rotating, and positioning the watermark.
Default Value
Section titled “Default Value”falseInherited from
Section titled “Inherited from”WatermarkImageOptions.trimTransparentPadding
type:
"image"
Defined in: index.ts:894