ImgBase class abstract Core
Base class for all SDK image representations with rendering capabilities.
Represents images in an abstract form that is not directly drawable on UI. Provides metadata access (uid, imageType, isValid, isScalable) and methods to obtain renderable image data (getRenderableImage, getRenderableImageBytes).
Use concrete subclasses for specific image types: Img for plain images, AbstractGeometryImg for turn arrows, LaneImg for lane guidance, SignpostImg for directional signs, and RoadInfoImg for road shields.
Images can be rendered to Uint8List format suitable for Image.memory or to RenderableImg which includes both bytes and final dimensions.
See also:
- Img - Plain raster images with fixed size and aspect ratio
- AbstractGeometryImg - Vector turn arrow images for navigation
- LaneImg - Vector lane guidance images with rendering options
- SignpostImg - Vector signpost images for highway exits
- RoadInfoImg - Vector road shield and label images
- RenderableImg - Container for rendered image bytes with dimensions
- Implementers
Constructors
- ImgBase.init(int id)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasRegisteredAutoReleaseObject ↔ bool
-
getter/setter pairinherited
- imageType → ImageType
-
Category of this image indicating its source and purpose.
no setter
- isScalable → bool
-
Whether the image uses a vector format and supports lossless scaling.
no setter
- isValid → bool
-
Whether the SDK has valid image data available.
no setter
- pointerId → int
-
The pointer ID of the native object
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uid → int
-
Unique identifier for this image instance.
no setter
Methods
-
dispose(
) → void -
Disposes the native object.
inherited
-
getRenderableImage(
{Size? size, ImageFileFormat format = ImageFileFormat.png}) → RenderableImg? - Retrieves image data with both bytes and actual rendered dimensions.
-
getRenderableImageBytes(
{Size? size, ImageFileFormat format = ImageFileFormat.png}) → Uint8List? - Retrieves image bytes suitable for display with Image.memory.
-
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