Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » TopWindow content to image
Re: TopWindow content to image [message #26518 is a reply to message #26511] Fri, 07 May 2010 14:42 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Usually, you do this by implementing the actual rendering process in some other routine than Paint. Paint then just calls this routine; often you will want to parametrize a bit so what is going to screen is different from what is going to printer.

Then, if you are about to print, just use Draw obtained from PrinterJob (and the one you get in Paint for screen).

Sort of example can be found in UWord; but you will have to dig quite deep: In fact, rendering is implemented by RichText class there, and used for printer and for screen by RichEdit.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Access Animated GIF ??
Next Topic: Image: Rescale proportional propose:
Goto Forum:
  


Current Time: Tue May 07 16:05:22 CEST 2024

Total time taken to generate the page: 0.02482 seconds