Hi folks,
I'm trying to use the Kendo React Drawing API to draw an Image at its' native dimensions. The Image source will be a URL and could be an image not known at code-time but instead specified at run-time.
The documentation found here shows that I first need to specify the Image dimensions before I know what they will be.
const imageRect = new geom.Rect([5, 5], [50, 50]);
const image = new Image('../assets/diego.jpg', imageRect);
My issue is that `diego.jpg` may not be 50x50 for example.
How can I use `Image` while also allowing it to be the native image dimensions?
Thanks
Or maybe even a way to grab the image from the DOM instead of a URL? That way it'd already know the dimensions.