AW: Re[2]: wxGCDC doesnt support any kind of logical function under MSW

Jürgen Ladstätter info at innova-studios.com
Mon Jul 23 05:24:10 PDT 2007


sorry was in holidays so hadn't time to write back.

currently I need the wxEQUIV function for drawing adobe ilustrator files,
because they use the postscript syntax but also have selective color picking
that can only be realised by using wxEQUIV. It works nicely with the normal
wxAutoBufferedPaintDC, but it lacks of anti aliasing and so everything looks
crappy.


-----Ursprüngliche Nachricht-----
Von: Eric Jensen [mailto:ej at xe847.com] 
Gesendet: Sonntag, 22. Juli 2007 13:17
An: Stefan Csomor
Betreff: Re[2]: wxGCDC doesnt support any kind of logical function under MSW

>> JL> hi there,
>> 
>> JL> currently i'm in need of drawing polygons on a frame and i always
>> used
>> JL> wxGCDC because i needed some kind of anti aliasing effekt. now I
>> found out
>> JL> that for drawing postscript images I need the logical function
>> wxINVERT and
>> JL> wxGCDC doesn't support it as you can see here:
>> 
>> JL> bool wxGraphicsContext::SetLogicalFunction( int function )
>> JL> {
>> JL>     if ( function == wxCOPY )
>> JL>     {
>> JL>         m_logicalFunction = function;
>> JL>         return true;
>> JL>     }
>> JL>     return false;
>> JL> }
>> 
>> JL> is there anyone working on those logical functions? who could I
>> contact or
>> JL> better to say, what should I do now? :)
>> 
>> JL> kind regards juergen
>> 
>> As this post remained unanswered, i'd like to "bump" it here.
>> 
>> When i check the drawing sample, there are many things missing or
>> wrong when switching to "use graphicscontext". [MSW 2.8.4]
>> 
>> Is there still some work in progress on wxGraphicsContext and related
>> code?
>> 
>> Related question: Does anyone know a nice c++ wrapper for AGG?

SC> did you post the issues to sf.net ? this helps to make sure things don't
get
SC> lost ...

SC> some things cannot be made to work on all platforms, eg as
wxGraphicsContext
SC> is a painter model (ie it is like painting on something), inverting
(which
SC> first looks at the pixels and then changes them) isn't going to be
supported
SC> officially (we might add it to platforms that support it natively in
their
SC> new graphics APIs, but you should never count on it being available)

SC> so what is the effect of inverting needed for exactly ? perhaps we can
find
SC> a substitute ...

I'm not the poster of the original post, so i don't know what he
needed it for.

I didn't bother posting the bugs/errors to SF cause the effects are
very apparent when checking the "drawing" sample. Go through each
page and toggle "use graphicscontext" on each page.

However, having heard that raster operations are not supported "by
design", most errors can be explained by that.

Here's a forum entry describing another problem (not by me):
http://wxforum.shadonet.com/viewtopic.php?t=15141

Regards,
Eric





---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
For additional commands, e-mail: wx-users-help at lists.wxwidgets.org






More information about the wx-users mailing list