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
When the source of an ImageEditor control is set to a URL that doesn't exist, the 404 causes an app crash. I'd think it'd display a broken image or somehow handle it rather than bubble up the crash.
for example null template, missing image template, etc.
This is a feature request for an annotations layer that provides lines, shapes, text, etc.
These annotations:
As an example of these features, see Techsmith's SnagIt Editor app.
Hi Team,
I would like to be able to persist the user's scroll position after zooming, could you please expose a couple properties for X/Y or the entire scrollviewer's offset?
Currently, the ZoomLevel property is available, which will let me get the zoom amount (double). However, there's nothing for me to be able to get the current X/Y offset.
For example, here's a mockup:
I would like to be able to load a new image and re-set the same ZoomLevel and X/Y position.
Thank you,
Legrand
Is there a way to retrieve a pixel of the image in the imageEditor when clicking on it
I could implement something working well , but not when the image is zoomed or moved in the editor
public static Point Calc_Coordinates(double w_image, double h_image, double w_container, double h_container, double click_x, double click_y)