praeclarum / NGraphics

NGraphics is a cross platform library for rendering vector graphics on .NET. It provides a unified API for both immediate and retained mode graphics using high quality native renderers.
MIT License
711 stars 133 forks source link

IImageCanvas.DrawImage Changes the orientation of provided image on iOS #97

Open ghost opened 5 years ago

ghost commented 5 years ago

IImageCanvas.DrawImage Changes the orientation of provided image on Canvas Draw

This happens on iOS (Xamarin Forms + iOS) & for some images.

Code to reproduce IPlatform platforms = nGraphics.GetCurrent(); IImage iimage = platforms.LoadImage(mediaFileAndFaceArray.Path); var canvas = platforms.CreateImageCanvas(new NGraphics.Size(iimage.Size.Width, iimage.Size.Height), transparency: true); canvas.DrawImage(iimage, 0, 0, iimage.Size.Width, iimage.Size.Height, 1);