iOS Question Canvas.CreateBitmap does not match the size of the Panel

Bruno.im

Member
Licensed User
Longtime User
after creating a canvas on the panel, I save a bitmap from the canvas. Everything works fine except that the bitmap is exactly twice the size of the panel. I don't know where I am making the mistake.
See the log in the attached file
Thanks
 

Attachments

  • Test Size.zip
    2.7 KB · Views: 330

Bruno.im

Member
Licensed User
Longtime User
That was a great help
now I added after all the drawing on the canvas:

Panel1.Width=Panel1.Width / 2
Panel1.Height=Panel1.Height / 2
Canvas1.Initialize(Panel1)

Save the Bitmap right after this and I have the perfect size in Pixels.

Thanks again for pointing me to the right direction
 
Upvote 0
Top