getRenderableImage method
- Size? size,
- ImageFileFormat format = ImageFileFormat.png,
Get the image data as a RenderableImg. A RenderableImg contains the Uint8List and its width and height.
Parameters
- IN size The image size as (width, height).
- IN format The image format. By default it is PNG.
Returns
- The image as a RenderableImg if the image isValid, null otherwise
Implementation
RenderableImg? getRenderableImage({
Size? size,
ImageFileFormat format = ImageFileFormat.png,
}) {
return GemKitPlatform.instance.callGetFlutterImg(
_pointerId,
size != null ? size.width.toInt() : -1,
size != null ? size.height.toInt() : -1,
format.id,
allowResize: false,
);
}