UXP Toolkit
    Preparing search index...

    Interface BitmapConversionOptions

    Options for converting an image to bitmap mode, using Document.changeMode with ChangeMode.BITMAP.

    const doc = app.activeDocument;
    await doc.changeMode(constants.ChangeMode.BITMAP, {
    method: constants.BitmapConversionType.DIFFUSIONDITHER,
    resolution: 72
    });
    // Convert with halftone screen
    await doc.changeMode(constants.ChangeMode.BITMAP, {
    method: constants.BitmapConversionType.HALFTONESCREEN,
    frequency: 60,
    angle: 45,
    shape: constants.BitmapHalfToneType.ROUND
    });

    objects/conversionoptions

    interface BitmapConversionOptions {
        angle?: number;
        frequency?: number;
        method?: BitmapConversionType;
        patternName?: string;
        resolution?: number;
        shape?: BitmapHalfToneType;
    }
    Index

    Properties

    angle?: number

    The angle (in degrees) at which to orient individual dots. See shape property below. Valid only when the method property is set to BitmapConversionType.HALFTONESCREEN.

    -
    

    -180...180

    23.0

    frequency?: number

    The number of dots (per inch) to use. Valid only when the method property is set to BitmapConversionType.HALFTONESCREEN.

    -
    

    1.0..999.99

    23.0

    The conversion method.

    DIFFUSIONDITHER
    

    23.0

    patternName?: string

    The name of the pattern to use. Valid only when the method property is set to BitmapConversionType.CUSTOMPATTERN.

    
    

    23.0

    resolution?: number

    The output resolution (in pixels per inch).

    72
    

    23.0

    The dot shape. Valid only when the method property is set to BitmapConversionType.HALFTONESCREEN.

    -
    

    23.0