Options for the StaticImageSource constructor.

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

Properties

Properties

extent: Extent

The extent of the image.

flipY?: boolean

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

source:
    | string
    | Texture
    | HTMLImageElement
    | HTMLCanvasElement

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.