getRealisticNextTurnImage method

Uint8List? getRealisticNextTurnImage({
  1. Size? size,
  2. ImageFileFormat? format,
  3. AbstractGeometryImageRenderSettings renderSettings = const AbstractGeometryImageRenderSettings(),
})

Retrieve a rasterized image for the realistic next-turn rendering.

The image is rendered using the optional renderSettings and returned in the requested format.

Parameters

  • size: Desired image dimensions. When null a default size is returned.
  • format: Desired image file format, or null to use the platform default.
  • renderSettings: Rendering options controlling styling and visibility of features.

Returns

  • Uint8List?: raw image bytes, or null when an image cannot be produced.

See also:

Implementation

Uint8List? getRealisticNextTurnImage({
  final Size? size,
  final ImageFileFormat? format,
  final AbstractGeometryImageRenderSettings renderSettings =
      const AbstractGeometryImageRenderSettings(),
}) {
  return GemKitPlatform.instance.callGetImage(
    pointerId,
    'RouteInstructionGetRealisticNextTurnImage',
    size?.width.toInt() ?? -1,
    size?.height.toInt() ?? -1,
    format?.id ?? -1,
    arg: jsonEncode(renderSettings),
  );
}