Declan McMullen wrote:

Hey guys,
quick query about using wxArt2d. I had a problem recently with wxwidgets. I was using the graphics context to do some simple floating point drawing but I was unable to print it out. The printer dc in widgets didnt support floating point. If i use wxart2d to draw my graphics instead can i print them out with floating point accuracy?

wxArt2D uses a context around other drawing context classes.
And all are based on drawing with double, even if internal it is drawn eventually on a pixel screen in integers.
But Antigrain goes even beyond that and draws subpixel.
In othere words, we have taken care to only convert to integer at the very last moment. And that is same when printing using a wxDc based context.

So there is a a2dDcDrawer, which is a wxDC based a2dDrawer2D.
And the same for using Antigrain and GdiPlus internal in the a2dDrawer2D derived context. This last one is recent.
I am not sure what is needed to make GdiPlus print.

But anyway you can print using a drawing defined in double, and somewhere internal it will be converted to integers on the printing paper. And i think this is right, since in the end a print does no do float printing i think. Are does it in postscript??

The trick is that the drawing is in doubles, and tat you can display any part of it in a window/view. So accuracy is almost endless.



I should also mention what the software does. It produces talking tactile diagrams for bling leaners.

No idea what that is.

We import a graphic
draw over the top of it to mark important areas and add layers of audio information to those areas. we then print the graphic. When its placed on a touchscreen and the user presses on it the layers of information for the part of the graphic they pressed are played back. The prototype system just used the normal graphics context drawing methods of ellipses and polygons and so on but now were looking to improve that part of the system and wxart2d seems the best
candidate.

Should not be a problem. But be aware that images/bitmaps in vector graphics is not always fast. Especially when zooming in and out.
But it looks like you are not using images??

Klaas



--
Unclassified


------------------------------------------------------------------------------------------------------------
Disclaimer:

If you are not the intended recipient of this email, please notify the sender and delete it. Any unauthorized copying, disclosure or distribution of this email or its attachment(s) is forbidden. Thales Nederland BV will not accept liability for any damage caused by this email or its attachment(s). Thales Nederland BV is seated in Hengelo and is registered at the Chamber of Commerce under number 06061578.
------------------------------------------------------------------------------------------------------------

begin:vcard
fn:Klaas Holwerda
n:Holwerda;Klaas
note:Unclassified
version:2.1
end:vcard

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Wxart2d-users_dev mailing list
Wxart2d-users_dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev

Reply via email to