How to make a shape resizable?
Zsolt Kúti
la.tinca at gmail.com
Tue Jul 30 14:20:27 UTC 2024
Oops, sorry. I was reading that superficially.
I thought of using a Shape (Rectangle) which is a Node and has its own
transforms methods.
On Tue, Jul 30, 2024 at 3:54 PM Davide Perini <perini.davide at dpsoftware.org>
wrote:
> 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/2e281673/attachment-0001.htm>
More information about the openjfx-discuss
mailing list