How to set the size of an image? Topic is solved
How to set the size of an image?
I want to display an image on my window. I try to use wxBitmap and load it with a local file and use dc.DrawBitmap to draw it. However I don't know how to scale the image since there is no parameter in the DrawBitmap method to set the scale. My question is how to tell wxWidget the size of the image ? Do I have to set the size in the loadfile method? If so, how?
Re: How to set the size of an image?
Did you look at the code in this post: viewtopic.php?f=1&t=45099#p186759
Re: How to set the size of an image?
Thanks, that is what I wantPB wrote: ↑Fri May 28, 2021 5:43 am Did you look at the code in this post: viewtopic.php?f=1&t=45099#p186759