Re: PNG image displayed larger in wx widget without any scale change

Igor Korot <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <CA+FnnTzEPP6zc8zYLTwM=VvNdcAgwTZ6i6nD5qgkAPB1syE90w@mail.gmail.com>
Hi, Alexandra,

On Fri, May 12, 2023, 7:07 AM Alexandra Grigoras <
[email protected]> wrote:

> 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.


Can you build the main C++ library and then its image sample?

If not - can you attach the image and screenshot of wxPython control you
tried?

Thank you.


> 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
> <https://groups.google.com/d/msgid/wx-users/3eb7390c-6e26-4169-85b9-084b284f8eaen%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CA%2BFnnTzEPP6zc8zYLTwM%3DVvNdcAgwTZ6i6nD5qgkAPB1syE90w%40mail.gmail.com.
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.