ArcGISImage class final
The Image object.
- Implemented types
Constructors
- ArcGISImage({required int height, required int width, required Uint8List data})
-
Creates a new image object.
factory
Properties
Methods
-
getBuffer(
) → Uint8List - Returns image data in RGBA.
-
getEncodedBuffer(
) → Uint8List - Returns image data in the same format that it was created.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toImage(
) → Future< Image> - Converts this image to a ui.Image. The caller is responsible for calling ui.Image.dispose() on the returned image.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromAsset(
String assetKey) → Future< ArcGISImage> -
Retrieves an ArcGISImage from the rootBundle under the key
assetKey
. -
fromByteData(
ByteData byteData) → ArcGISImage - Creates an ArcGISImage parsed from a raw data buffer in JPG or PNG format.
-
fromBytes(
Uint8List bytes) → ArcGISImage - Creates an ArcGISImage parsed from a raw data buffer in JPG or PNG format.
-
fromFile(
Uri fileUri) → ArcGISImage? - Creates a new image object from a file.
-
fromImage(
Image image) → Future< ArcGISImage> - Converts a ui.Image to an ArcGISImage.
-
fromScaledAsset(
String assetKey, {double devicePixelScale = 1.0}) → Future< ArcGISImage> -
For use with resolution-aware image assets, retrieves an ArcGISImage from the rootBundle under the key
assetKey
, matching thedevicePixelScale
. -
withBuffer(
Uint8List data) → ArcGISImage? - Creates a new image object from a buffer.