Stefan Csomor
2014-05-06 09:21:35 UTC
Hi Joost
wxAutoBufferedPaintDC would be the thing to use, this is using a buffered dc on platforms where needed, and a plain paintdc on already buffered platforms ...
Best,
Stefan
Von: Joost N <***@gmail.com<mailto:***@gmail.com>>
Antworten an: "wx-***@googlegroups.com<mailto:wx-***@googlegroups.com>" <wx-***@googlegroups.com<mailto:wx-***@googlegroups.com>>
Datum: Dienstag, 6. Mai 2014 09:46
An: "wx-***@googlegroups.com<mailto:wx-***@googlegroups.com>" <wx-***@googlegroups.com<mailto:wx-***@googlegroups.com>>
Betreff: Re: Drawing to wxGraphicsContext in native resolution on retina screens
I found the problem!
I was creating the wxGraphicsContext from a wxBufferedPaintDC. After changing this to wxPaintDC everything comes out crisp. Which is fine because buffering isn't needed on mac anyway.
Again thanks for the help!
On Monday, 5 May 2014 22:29:10 UTC+2, Stefan Csomor wrote:
Hi
drawing text definitely should not be done without antialiasing / smoothing on OSX, for drawing paths the outcome depends on the coordinates and thickness, also bitmaps should always align on the pixels boundaries, but all these situations should actually be better on Retina, not worse, so I still assume the issue is some intermediate format ...
Best,
Stefan
Von: Robin Scher <***@uberware.net<javascript:>>
Antworten an: <wx-***@googlegroups.com<javascript:>>
Datum: Montag, 5. Mai 2014 19:43
An: <wx-***@googlegroups.com<javascript:>>
Betreff: Re: Drawing to wxGraphicsContext in native resolution on retina screens
I found that wxGraphicsContext had anti-aliasing enabled by default, which made my drawing code look blurry. Try disabling it:
SetAntialiasMode( wxANTIALIAS_NONE );
-robin
Robin Scher
***@uberware.net<javascript:>
+1 (213) 448-0443
On May 5, 2014, at 6:33 AM, Joost N <***@gmail.com<javascript:>> wrote:
Hi,
Currently all text and images drawn to a wxGraphicsContext on macs with retina screens come out blurred. Is there any way to get a wxGraphicsContext at the native screen resolution? I'm prepared to call OS X apis if necessary and do the scaling myself Does anyone know a way to do this?
Thanks
Joost
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com<javascript:>
or visit http://groups.google.com/group/wx-users
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com<mailto:wx-users+***@googlegroups.com>
or visit http://groups.google.com/group/wx-users
wxAutoBufferedPaintDC would be the thing to use, this is using a buffered dc on platforms where needed, and a plain paintdc on already buffered platforms ...
Best,
Stefan
Von: Joost N <***@gmail.com<mailto:***@gmail.com>>
Antworten an: "wx-***@googlegroups.com<mailto:wx-***@googlegroups.com>" <wx-***@googlegroups.com<mailto:wx-***@googlegroups.com>>
Datum: Dienstag, 6. Mai 2014 09:46
An: "wx-***@googlegroups.com<mailto:wx-***@googlegroups.com>" <wx-***@googlegroups.com<mailto:wx-***@googlegroups.com>>
Betreff: Re: Drawing to wxGraphicsContext in native resolution on retina screens
I found the problem!
I was creating the wxGraphicsContext from a wxBufferedPaintDC. After changing this to wxPaintDC everything comes out crisp. Which is fine because buffering isn't needed on mac anyway.
Again thanks for the help!
On Monday, 5 May 2014 22:29:10 UTC+2, Stefan Csomor wrote:
Hi
drawing text definitely should not be done without antialiasing / smoothing on OSX, for drawing paths the outcome depends on the coordinates and thickness, also bitmaps should always align on the pixels boundaries, but all these situations should actually be better on Retina, not worse, so I still assume the issue is some intermediate format ...
Best,
Stefan
Von: Robin Scher <***@uberware.net<javascript:>>
Antworten an: <wx-***@googlegroups.com<javascript:>>
Datum: Montag, 5. Mai 2014 19:43
An: <wx-***@googlegroups.com<javascript:>>
Betreff: Re: Drawing to wxGraphicsContext in native resolution on retina screens
I found that wxGraphicsContext had anti-aliasing enabled by default, which made my drawing code look blurry. Try disabling it:
SetAntialiasMode( wxANTIALIAS_NONE );
-robin
Robin Scher
***@uberware.net<javascript:>
+1 (213) 448-0443
On May 5, 2014, at 6:33 AM, Joost N <***@gmail.com<javascript:>> wrote:
Hi,
Currently all text and images drawn to a wxGraphicsContext on macs with retina screens come out blurred. Is there any way to get a wxGraphicsContext at the native screen resolution? I'm prepared to call OS X apis if necessary and do the scaling myself Does anyone know a way to do this?
Thanks
Joost
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com<javascript:>
or visit http://groups.google.com/group/wx-users
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com<mailto:wx-users+***@googlegroups.com>
or visit http://groups.google.com/group/wx-users
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users