PNG image displayed larger in wx widget without any scale change

Alexandra Grigoras <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
Hi all,

I have a problem figuring out why PNG image is displayed larger in a wx 
widget than its actual size without making any scale change(Python 3.10, 
wxpython 4.2.0, Windows 10). I have tried wx.ScrolledWindow/wx.Panel with 
wxStaticBitmap, wx.lib.statbmp.GenStaticBitmap and overwrite of 
wx.lib.statbmp.GenStaticBitmap's OnPaint method and debugged height, width 
and scale members on every object up to wx.DC and I have not found any 
explanation: height and width are actual height and width  the image and 
scale is 1.0. I have attached picture where in left size is image with its 
real size and in right side is how it is displayed in wx.ScrolledWindow.
I would need first to understand why PNG image is displayed larger in a wx 
widget than its actual size and second to display PNG image in 
wx.ScrolledWindow at its actual real size.

Regards and thank you in advance,
Alexandra

-- 
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
--- 
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/3eb7390c-6e26-4169-85b9-084b284f8eaen%40googlegroups.com.
Paint-Wx.png (image/png, 174.3 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.