Interface WatermarkImageOptions

Description

Text options for image watermark

Example

src: require('./images/logo.png'),
scale: 0.5,
rotate: 45,
alpha: 0.5
position: {
X: 10,
Y: 10,
// or
// position: Position.center
}

Hierarchy

Properties

alpha?: number

Description

transparent of background image 0 - 1

Default Value

1

Example

alpha: 0.5
position?: PositionOptions
rotate?: number

Description

rotate image rotate 0-360

Default Value

0

Example

rotate: 45
scale?: number

Description

image scale >0

Default Value

1

Example

scale: 1
src: any

Description

image src, local image

Example

src: require('./images/logo.png')

Generated using TypeDoc