<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
I would not like to scale the entire canvas, only the rectangle with
a mouse event.<br>
<br>
Davide<br>
<br>
<div class="moz-cite-prefix">Il 30/07/2024 13:45, Zsolt Kúti ha
scritto:<br>
</div>
<blockquote type="cite"
cite="mid:CAA61B7G9-=Cj1Z0LFy4y-ATM_Qpzz1FfzoWud9fgd5kfc4GZ2g@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi Davide,
<div><br>
</div>
<div>Have you tried setScaleX/Y/Z methods or the corresponding
properties?</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, Jul 30, 2024 at
1:04 PM Davide Perini <<a
href="mailto:perini.davide@dpsoftware.org"
moz-do-not-send="true" class="moz-txt-link-freetext">perini.davide@dpsoftware.org</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div> Hi there,<br>
is there an easy way to make a shape resizable?<br>
<br>
Suppose that I draw a rectangle with<br>
<div
style="background-color:rgb(30,31,34);color:rgb(188,190,196)">
<pre
style="font-family:"JetBrains Mono",monospace"><span
style="color:rgb(199,125,187)">gc</span>.fillRect(x, y, z, h);</pre>
</div>
How am I supposed to make that shape resizable?<br>
I know that I can do it by draw the entire canvas again but
it is very tricky.<br>
<br>
Is there something that may help me doing it?<br>
<br>
Thanks<br>
Davide<br>
<br>
<br>
<br>
<br>
</div>
</blockquote>
</div>
</blockquote>
<br>
</body>
</html>