setImage method
- required Uint8List imageData,
- ImageFileFormat format = ImageFileFormat.png,
Set the image of this landmark.
Parameters
- IN imageData The image
- IN format ImageFileFormat of the image.
Throws
- An exception if it fails.
Implementation
void setImage({
required final Uint8List imageData,
final ImageFileFormat format = ImageFileFormat.png,
}) {
final dynamic gemImage = GemKitPlatform.instance.createGemImage(
imageData,
format.id,
);
try {
objectMethod(_pointerId, 'Landmark', 'setImage', args: gemImage);
} finally {
GemKitPlatform.instance.deleteCPointer(gemImage);
}
}