WebCAD-Lib-TS API 文档 - v1.0.0
    Preparing search index...

    Interface IExportImageOptions

    interface IExportImageOptions {
        entities?: EntityBase[];
        width?: number;
        height?: number;
        theme?: ExportImageTheme;
        transparent?: boolean;
        mimeType?: "image/png" | "image/jpeg";
        quality?: number;
        fileName?: string;
    }
    Index

    Properties

    entities?: EntityBase[]

    Entities whose bounds define the exported region. Defaults to all.

    width?: number

    Output image width in pixels. Defaults to 1920.

    height?: number

    Output image height. Auto-calculated from entity bounds when omitted.

    Background theme. Defaults to "light".

    transparent?: boolean

    Transparent background (PNG only). Defaults to true.

    mimeType?: "image/png" | "image/jpeg"

    Image format. Defaults to "image/png".

    quality?: number

    JPEG quality (0–1).

    fileName?: string

    Downloaded file name. Defaults to "export.png".