Home > @magiclane/maps-sdk > Img
Img class
Class used for basic images
Represents the image in an abstract way, providing metadata and access to the RenderableImg.
Signature:
export declare class Img extends ImgBase Extends: ImgBase
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
| number | Get the aspect ratio (width / height) | |
| { width: number; height: number; } | Get the recommended image size |
Methods
Method | Modifiers | Description |
|---|---|---|
| Creates a new image from binary data | |
Dispose the image resources | ||
| Creates an image from an asset | |
Get the renderable image |