FIXME: ImageSourcePropType type define bug
background image options
backgroundImage: {
src: require('./images/logo.png'),
scale: 0.5,
rotate: 45,
alpha: 0.5
}
Optional
filenamesave image name
filename: 'test'
Optional
maxsince 1.2.0
max image size see #49 #42
android only
need RN version >= 0.60.0, fresco MaxBitmapSize
ImagePipelineConfig.Builder.experiment().setMaxBitmapSize()
, see #49
2048
maxSize: 2048
Optional
qualityimage quality 0-100
, 100
is best quality. If you want the quality to have more effect, try to set the image export format to the compressible format jpg
. see #159
100
quality: 100
Optional
savesave image format
jpg
saveFormat: ImageFormat.png
text options
watermarkTexts: [
{
text: 'hello world',
positionOptions: {
X: 10,
Y: 10,
// or
// position: Position.center
},
style: {
color: '#aacc22',
fontName: 'Arial',
fontSize: 12,
shadowStyle: {
dx: 10,
dy: 10,
radius: 10,
color: '#aacc22'
},
textBackgroundStyle: {
paddingX: 10,
paddingY: 10,
type: TextBackgroundType.stretchX,
color: '#aacc22'
},
underline: true,
strikeThrough: true,
textAlign: 'left',
italic: true,
//or
// skewX: 45,
bold: true,
rotate: 45
}
}]
Generated using TypeDoc
Description
Options for text watermark
Example