getExtraImage method

Uint8List? getExtraImage({
  1. Size? size,
  2. ImageFileFormat? format,
})

Retrieves the landmark's secondary (extra) image as raw bytes.

The returned bytes may be null when no extra image exists. The caller is responsible for validating and decoding the bytes. For higher-level handling use extraImg which returns an Img wrapper.

Parameters

  • size: Optional desired image size. If omitted, original size is used.
  • format: Optional ImageFileFormat describing preferred format.

Returns

  • Uint8List?: Raw image bytes, or null when no image is available.

See also:

  • extraImg for a higher-level image wrapper.

Implementation

Uint8List? getExtraImage({final Size? size, final ImageFileFormat? format}) {
  return GemKitPlatform.instance.callGetImage(
    pointerId,
    'LandmarkgetExtraImage',
    size?.width.toInt() ?? -1,
    size?.height.toInt() ?? -1,
    format?.id ?? -1,
  );
}