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   |
 |
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
|
|
|
Goto Forum:
Current Time: Mon Apr 28 20:33:17 CEST 2025
Total time taken to generate the page: 0.04566 seconds
|