How to make a shape resizable?
Davide Perini
perini.davide at dpsoftware.org
Tue Jul 30 13:54:51 UTC 2024
I would not like to scale the entire canvas, only the rectangle with a
mouse event.
Davide
Il 30/07/2024 13:45, Zsolt Kúti ha scritto:
> Hi Davide,
>
> Have you tried setScaleX/Y/Z methods or the corresponding properties?
>
>
>
> On Tue, Jul 30, 2024 at 1:04 PM Davide Perini
> <perini.davide at dpsoftware.org> wrote:
>
> Hi there,
> is there an easy way to make a shape resizable?
>
> Suppose that I draw a rectangle with
>
> gc.fillRect(x, y, z, h);
>
> How am I supposed to make that shape resizable?
> I know that I can do it by draw the entire canvas again but it is
> very tricky.
>
> Is there something that may help me doing it?
>
> Thanks
> Davide
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-discuss/attachments/20240730/31136403/attachment.htm>
More information about the openjfx-discuss
mailing list