Home > @magiclane/maps-sdk > ImgBase

ImgBase class

Base class for images

Represents the image in an abstract way, providing metadata and access to the RenderableImg.

Signature:

export declare abstract class ImgBase extends GemAutoreleaseObject 

Extends: GemAutoreleaseObject

Constructors

Constructor

Modifiers

Description

(constructor)(pointerId)

protected

Constructs a new instance of the ImgBase class

Properties

Property

Modifiers

Type

Description

_pointerId

protected

number | bigint

imageType

readonly

ImageFileFormat

Get the image type

isValid

readonly

boolean

Check if the image is valid

pointerId

readonly

number | bigint

uid

readonly

number

Get the image unique ID

Methods

Method

Modifiers

Description

getRenderableImage(size, format)

abstract

Get the image as a RenderableImg

getRenderableImageBytes(size, format)

Get the image data as a Uint8Array