Hi Greg,

For creating raster images, RenderTargetBitmap is your friend. If you're 
rendering an off-screen object make sure to invoke a layout pass first: 
http://www.ericsink.com/wpf3d/3_Bitmap.html

Paul


From: [email protected] [mailto:[email protected]] On 
Behalf Of Greg Keogh
Sent: Tuesday, 23 March 2010 10:24 AM
To: [email protected]
Subject: Export to image

Folks, following up on my 'WPF Feasibility Check' from a couple of weeks ago 
... I've got the WPF drawing of a mock sheet of glowing glass appearing in a 
Form, but I forgot to ask about one vital thing:

How can I export my drawing (made by combining lots of paths) to an image?

In GDI you draw to an image hdc, but I'm not sure what the WPF equivalent is. I 
also wonder about converting a vector based drawing into a pixelised image, 
with rounding problems and the like. Any there other export options? Any 
general ideas on this unfamiliar area would really help get off the starting 
blocks.

If I can export in my proof-of-concept app then it's go go go with the real one.

Cheers,
Greg
_______________________________________________
ozwpf mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozwpf

Reply via email to