Replies: 1 comment 1 reply
-
Unfortunately this is a current limitation of the view because the canvas size is only calculated just before a frame is rendered. However, this is also not a complex system and I probably will change this to be pre-calculated. You can get the next frame size by basically multiplying the forms view bounds by the screen density. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use the CanvasSize to calculate the scaling from Forms independent coordinates to device dependent coordinates. But if I try to get the CanvasSize in OnSizeChanged, it is always (0, 0), or better, is the last size of the view. It seems, that I have to check for a change in OnPaintSurface. But I don't want to check this each 16 ms, because it doesn't change without a OnSizeChanged event.
So the question is: Is there an event to get the correct CanvasSize?
Beta Was this translation helpful? Give feedback.
All reactions