RenderableImg class Core
Container for rendered image data with bytes and dimensions.
Packages image bytes together with actual rendered width and height in pixels.
Returned by ImgBase.getRenderableImage and subclass implementations. Use
when you need to know the final dimensions of the rendered image, especially
important for vector images with allowResize enabled where the SDK chooses
optimal aspect ratio.
See also:
- ImgBase.getRenderableImage - Returns this container with image data
- ImgBase.getRenderableImageBytes - Returns only bytes without dimensions
Constructors
- RenderableImg(int width, int height, Uint8List bytes)
- Creates a container for rendered image data.
Properties
- bytes → Uint8List
-
Rendered image bytes suitable for display with Image.memory.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int
-
Rendered image height in pixels.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → Size
-
Rendered image dimensions as Size.
no setter
- width → int
-
Rendered image width in pixels.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited