andyhill Posted May 11, 2021 Share Posted May 11, 2021 I am using UniCanvas (cArea) and want to zoom / scale display (experimental code below does nothing), please advise how - Thanks in advance. case ScaleMode of 0: begin cArea.BeginUpdate; cArea.ScaleBy(1, 1); cArea.EndUpdate; end; 1: begin cArea.BeginUpdate; cArea.ScaleBy(10, 10); cArea.EndUpdate; end; end; Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 11, 2021 Share Posted May 11, 2021 52 minutes ago, andyhill said: I am using UniCanvas (cArea) and want to zoom / scale display (experimental code below does nothing), please advise how - Thanks in advance. Hello, For reference, scaling works differently, you can read about it here: https://www.w3schools.com/tags/canvas_scale.asp Quote Link to comment Share on other sites More sharing options...
andyhill Posted May 11, 2021 Author Share Posted May 11, 2021 Thanks Sherzod, I was thrown by the IDE showing the canvas had a built in method for scaling 😞 It draws a frame around the canvas (I need to remove it) ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.