U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » RichText,QTF,RTF... » Loading Image into qtf
Re: Loading Image into qtf [message #11211 is a reply to message #9925] Mon, 27 August 2007 19:32 Go to previous messageGo to previous message
forlano is currently offline  forlano
Messages: 1241
Registered: March 2006
Location: Italy
Senior Contributor
[quote title=guido wrote on Sat, 09 June 2007 14:18]
luzr wrote on Fri, 08 June 2007 15:58

try

dw.DrawImage(0, 0, img);

(You are drawing outside the area at 500, 500).

Or perhaps you really wanted

dw.DrawImage(0, 0, 500, 500, img)

- stretches the image to fill the area.

Anyway, that is still too ineffective, there is a nice function:

RichObject CreateImageObject(const Image& img, int cx = 0, int cy = 0);

which produces RichObject directly, without the need of ImageDraw.
Guido


Hello Guido,

I am facing your same problem, that to load a file image in a qtf document. It seems you have resolved this problem.
If you have still the correct test case may I ask you to post it?
Many thanks,
Luigi
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Rendering qtf into a window: horrible flicker
Next Topic: Failed to set String format in report from SQLite3
Goto Forum:
  


Current Time: Wed Jun 24 10:59:12 GMT+2 2026

Total time taken to generate the page: 0.00543 seconds