getLaneImage method
Uint8List?
getLaneImage({
- Size? size,
- ImageFileFormat? format,
- LaneImageRenderSettings renderSettings = const LaneImageRenderSettings(),
- bool allowResize = false,
Get an image representation of current lane configuration.
Parameters
- IN size The image sizes
- IN format ImageFileFormat of the image.
- IN renderSettings SignpostImageRenderSettings of the image.
- IN allowResize if true, allows the image to be resized to a more suitable size which may be different from
size
.
Returns
- The lane image if lane information is available
- null if no image is available
Implementation
Uint8List? getLaneImage({
final Size? size,
final ImageFileFormat? format,
final LaneImageRenderSettings renderSettings =
const LaneImageRenderSettings(),
final bool allowResize = false,
}) {
return GemKitPlatform.instance.callGetImage(
pointerId,
'NavigationInstructionGetLaneImage',
size?.width.toInt() ?? -1,
size?.height.toInt() ?? -1,
format?.id ?? -1,
arg: jsonEncode(renderSettings),
allowResize: allowResize,
);
}