Document Solutions Image Viewer
    Preparing search index...

    Type Alias OpenParameters

    Image open parameters.

    type OpenParameters = {
        imageFormat?: ImageFormatCode | ImageFormatName | ImageFormatCode;
        imageDPI?: number;
        fileName?: string;
    }

    Properties

    Image format type. Use the imageFormat parameter when the viewer cannot automatically determine the image format. Available image formats are: 1 = JPEG, 2 = PNG, 3 = TIFF, 4 = GIF, 5 = BMP, 6 = ICO, 7 = SVG, 8 = WEBP

    // Open TIFF image from URL.
    viewer.open("http://localhost/getimage?id=1&fmt=3", { imageFormat: 3 });
    // or:
    viewer.open("http://localhost/getimage?id=1&fmt=3", { imageFormat: "tiff" });
    imageDPI?: number

    Image DPI. DPI value is used to determine the quality and resolution of the image.

    96
    
    viewer.open("sample.png", { imageDPI: 72 });
    
    fileName?: string

    Optional. Friendly file name.

    viewer.open("/getSampleImage", { fileName: "sample.png" });