javafx 8 - How do I draw a Rectangle on a rotated GraphicsContext and find the rotated co-ordinates -
i using graphicscontext (gc) inside animationtimer. scaling gc, drawing objects, rotating gc , drawing image.
the image appears rotated planned!
i need able rotated rectangle represents image can check proximity of 4 (rotated) corners other, non rotated objects.
i cannot see how this.
i have tried creating rotated rectangle 'mirror' objects rotation cannot see how draw rectangle in gc.
there no gc.draw(node), gc.draw(rectangle) or gc.draw(polygon). need draw confirm on screen 2 match.
my other option break out geometry set , rotate points myself seem odd javafx cannot need.
could please help.
Comments
Post a Comment