Overview of Image classes in Magic Lane Maps SDK
Images in the SDK are represented as abstract objects that must be converted before they can be displayed in the UI. The SDK provides several image classes: Img, AbstractGeometryImg, LaneImg, SignpostImg, and RoadInfoImg.
All these classes share the following common members:
uid: A unique ID for the image. Identical images share the same UID, which can be used to optimize UI redraws.isValid: A boolean indicating if the image data is valid. Rendering methods returnnullif this is false.getRenderableImageBytes(): Returns aUint8Listcompatible withImage.memory. Returnsnullif invalid.getRenderableImage(): Returns aRenderableImgobject containing both the image size and theUint8Listbytes. Returnsnullif invalid.