getRenderableImage method

RenderableImg? getRenderableImage({
  1. Size? size,
  2. 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

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,
  );
}