Discussion:
Drawing to wxGraphicsContext in native resolution on retina screens
Stefan Csomor
2014-05-06 09:21:35 UTC
Permalink
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
--
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
Robin Scher
2014-05-05 17:43:45 UTC
Permalink
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
+1 (213) 448-0443
Post by Stefan Csomor
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.
or visit http://groups.google.com/group/wx-users
Joost N
2014-05-06 07:46:52 UTC
Permalink
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!
Post by Stefan Csomor
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
Datum: Montag, 5. Mai 2014 19:43
Betreff: Re: Drawing to wxGraphicsContext in native resolution on retina
screens
I found that wxGraphicsContext had anti-aliasing enabled by default,
SetAntialiasMode( wxANTIALIAS_NONE );
-robin
Robin Scher
+1 (213) 448-0443
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.
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
Stefan Csomor
2014-05-05 20:29:10 UTC
Permalink
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<mailto:***@uberware.net>>
Antworten an: <wx-***@googlegroups.com<mailto:wx-***@googlegroups.com>>
Datum: Montag, 5. Mai 2014 19:43
An: <wx-***@googlegroups.com<mailto:wx-***@googlegroups.com>>
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<mailto:***@uberware.net>
+1 (213) 448-0443



On May 5, 2014, at 6:33 AM, Joost N <***@gmail.com<mailto:***@gmail.com>> 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<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
David Connet
2014-06-27 14:05:48 UTC
Permalink
I just tried to configure wx (both 2.8 and 3.0.1) with
--disable-mediactrl. "wx-config --libs" still has "-framework QuickTime"
in it. Is there something else that needs to be done? Or is that just a
bug in wx-config?

Dave
--
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
Steve Cookson - gmail
2014-06-27 20:33:01 UTC
Permalink
Post by David Connet
I just tried to configure wx (both 2.8 and 3.0.1) with
--disable-mediactrl.
Oh sorry, you tried.
--
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
Vadim Zeitlin
2014-06-30 12:03:02 UTC
Permalink
On Fri, 27 Jun 2014 07:05:48 -0700 David Connet wrote:

DC> I just tried to configure wx (both 2.8 and 3.0.1) with
DC> --disable-mediactrl. "wx-config --libs" still has "-framework QuickTime"
DC> in it. Is there something else that needs to be done? Or is that just a
DC> bug in wx-config?

I've applied a blind fix for this in r76800, please let me know if it
works for you and I'll backport it to 3.0 then.

TIA,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
David Connet
2014-06-30 15:24:45 UTC
Permalink
Post by Vadim Zeitlin
I've applied a blind fix for this in r76800, please let me know if it
works for you and I'll backport it to 3.0 then.
Looks good. No qt framework option in the --libs output.

Dave
--
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
Vadim Zeitlin
2014-07-02 12:06:25 UTC
Permalink
On Mon, 30 Jun 2014 08:24:45 -0700 David Connet wrote:

DC> > I've applied a blind fix for this in r76800, please let me know if it
DC> > works for you and I'll backport it to 3.0 then.
DC>
DC> Looks good. No qt framework option in the --libs output.

Thanks for testing, backported to 3.0 branch now.
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Stefan Csomor
2014-07-03 20:42:50 UTC
Permalink
Hi Vadim
Post by Vadim Zeitlin
DC> > I've applied a blind fix for this in r76800, please let me know if it
DC> > works for you and I'll backport it to 3.0 then.
DC>
DC> Looks good. No qt framework option in the --libs output.
Thanks for testing, backported to 3.0 branch now.
VZ
as the now living build bot now reports failure, I think you have to leave
this in for carbon builds

Thanks,

Stefan
--
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
Vadim Zeitlin
2014-07-03 22:03:37 UTC
Permalink
On Thu, 3 Jul 2014 20:42:50 +0000 Stefan Csomor wrote:

SC> as the now living build bot now reports failure, I think you have to leave
SC> this in for carbon builds

Yes, indeed, there doesn't seem to be any reason to not do it there
anyhow. Should be fixed now, thanks!
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Loading...