Closed saeder closed 7 years ago
In the simulator it looks like ...
On an iPhone 5S it looks like ...
By the way the lines drawn directly to the IOS device are not antialiased and the lines drawn to the image are antialiased. I raised an issue #2028 - Antialiasing not working as expected
Actually looking at this again this should work fine isShapeClipSupported
should return false on that Graphics object of the mutable image as intended.
Doing shape clipping on images is probably bad performance especially in platforms where Display.areMutableImagesSlow()
returns true as happens to be the case on iOS.
Actually Image.createImage(128, 128, 0x00ffffff).getGraphics().isShapeClipSupported()
returns `true´ on IOS - at least that should be fixed then, don't You agree?
Sorry my bad, I read the code incorrectly. Just committed a fix and it should work right this Friday
I tested it this morning - shapeClipSupported
on Image.getGraphics
returns true, but shape clipping does not work
Shape clipping on
image.graphics
works in the simulator but not on IOS.This code demonstrates it by displaying a draggable lens with has a circle shape in the simulator - because shape clipping works there - and a square shape on IOS: