image marker for rn
    Preparing search index...

    Interface TextMarkOptions

    Options for text watermark

    backgroundImage: {
    src: require('./images/logo.png'),
    scale: 0.5,
    rotate: 45,
    alpha: 0.5
    },
    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
    }
    }],
    quality: 1,
    filename: 'test',
    saveFormat: ImageFormat.jpg,
    interface TextMarkOptions {
        backgroundImage: ImageOptions;
        filename?: string;
        maxSize?: number;
        quality?: number;
        saveFormat?: ImageFormat;
        watermarkTexts: TextOptions[];
    }
    Index

    Properties

    backgroundImage: ImageOptions

    FIXME: ImageSourcePropType type define bug background image options

    backgroundImage: {
    src: require('./images/logo.png'),
    scale: 0.5,
    rotate: 45,
    alpha: 0.5
    }
    filename?: string

    save image name

    filename: 'test'
    
    maxSize?: number

    since 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
    
    quality?: number

    image 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
    
    saveFormat?: ImageFormat

    save image format

    jpg

    saveFormat: ImageFormat.png
    
    watermarkTexts: TextOptions[]

    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
    }
    }]