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 » U++ Widgets - General questions or Mixed problems » Qtf and drawing
Re: Qtf and drawing [message #1040 is a reply to message #1033] Wed, 15 February 2006 22:11 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14255
Registered: November 2005
Ultimate Member
If it is fast enough for you then it is adequate way. Somewhat more straight approach would be to use

RichObject CreateDrawingObject(const Drawing& dwg, Size dot_size, Size out_size);

However, this is drawback that such QTF is not guaranteed to be compatible across platforms (PNG is).

If speed is absolute concern (rarely is), faster would be to generate RichText directly (without QTF), but I would really reserve that just for cases where it is absolutely neccessary.

-----

Image img (dist/scale, dist/scale, dw.GetResult(), SWhite());

- this line renders Drawing (vetor image) into raster Image, scaling it to the size established by first two parameters. No wonder that by increasing scale you are loosing the resolution.

Mirek
 
Read Message
Read Message
Read Message
Previous Topic: tray icon & balloon notification
Next Topic: How to set transparency level for static rectangle?
Goto Forum:
  


Current Time: Mon Apr 28 20:33:17 CEST 2025

Total time taken to generate the page: 0.04566 seconds