Img class Maps & 3D Scene
Class used for basic images
Represents the image in an abstract way, providing metadata and access to the RenderableImg.
Constructors
- Img(Uint8List data, {ImageFileFormat format = ImageFileFormat.autoDetect})
-
Create a new image based on image data and format
factory
- Img.init(int id)
Properties
- aspectRatio → double
-
Get the aspect recommended ratio (width / height)
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- imageType → ImageType
-
Get the image type
no setterinherited
- isValid → bool
-
Check if the image is valid
no setterinherited
- pointerId → int
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → Size
-
Get the recommended image size
no setter
- uid → int
-
Get the image unique ID
no setterinherited
Methods
-
dispose(
) → void -
getRenderableImage(
{Size? size, ImageFileFormat format = ImageFileFormat.png}) → RenderableImg? -
Get the image data as a RenderableImg.
A RenderableImg contains the Uint8List and its width and height.
override
-
getRenderableImageBytes(
{Size? size, ImageFileFormat format = ImageFileFormat.png}) → Uint8List? -
Get the image data as a Uint8List.
Display the image on UI using the Image.memory constructor.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerAutoReleaseObject(
int pointerId) → void -
Registers an object for auto release.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited