Type alias StaticImageSourceOptions

StaticImageSourceOptions: {
    extent: Extent;
    flipY?: boolean;
    source: string | HTMLImageElement | HTMLCanvasElement | Texture;
}

Options for the StaticImageSource constructor.

Type declaration

  • extent: Extent

    The extent of the image.

  • Optional flipY?: boolean

    Should the texture be flipped vertically ? This parameter only applies if source is a texture.

  • source: string | HTMLImageElement | HTMLCanvasElement | Texture

    The source of the image. It can be:

    • a URL to a remote PNG, JPEG or WebP file,
    • an <canvas> or <image> element,
    • a THREE.js Texture.