I’ve previously used the following code to get a preview image to use as symbology on forms and controls.
GdiPlusGeoCanvas canvas = new GdiPlusGeoCanvas();
canvas.BeginDrawing(newImage, new RectangleShape(0, newImage.Width, newImage.Height, 0), GeographyUnit.Meter);
With the change in v12 to SkiaGeoCanvas, it appears the BeginDrawing method now expects only a GeoImage object instead of a regular Image.
The output Image I need is going to get painted on a form, so it can’t be of type GeoImage.
How do I convert GeoImage back to regular Image? Is the above code even correct anymore?
Also, it appears that you can not use the new GeoImage(Width, Height) constructor as input into BeginDrawing. It only seems to accept new GeoImage(bytes).