Hi Team,
There are several scenarios where a developer might want to intercept the image loading process to preform pre-processing before the ImageEditor initial loads up the data onto the canvas.
This feature is to ask that you either expose the processing as service, or an event handler/overridable method, where we can do this preprocessing.
Just as a conceptual example, this Bug Report shows a current issue where the EXIF of the image data has a rotation that is not currently respected by the ImageEditor. As the developer, I could override the ImageEditor's "PrepareBitmap" method and handle the EXIF rotation ahead of time before the ImageEditor moves forward.
public override SkiaBitmap PrepareBitmap(SkiaBitmap originalBitmap)
{
var rotatedBitmap = AutoOrient(originalBitmap, origin);
return rotatedBitmap;
}
Thank you,
Nico