nativescript-community / ui-canvas

Implement Canvas into your NativeScript apps.
https://nativescript-community.github.io/ui-canvas/
Apache License 2.0
31 stars 9 forks source link

fix(ui-canvas): iOS bitmaps are flipped during initialization #61

Closed CatchABus closed 1 month ago

CatchABus commented 1 month ago

It seems that iOS blank bitmaps need flipping during initialization.

CatchABus commented 1 month ago

@farfromrefug Does _createContextFromImage really need the save/restore part? As a user, I imagine myself drawing few things on top of given image or even scale it. See https://github.com/nativescript-community/ui-canvas/blob/master/src/ui-canvas/canvas.ios.ts#L1852

farfromrefug commented 1 month ago

@CatchABus i see what you mean yes we can remove save / restore part so that you can draw on the image with the correct scale.

CatchABus commented 1 month ago

@CatchABus i see what you mean yes we can remove save / restore part so that you can draw on the image with the correct scale.

Done! Thanks for confirmation :smiley: