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 » RichText,QTF,RTF... » Loading Image into qtf
Loading Image into qtf [message #9913] Fri, 08 June 2007 12:18 Go to previous message
guido is currently offline  guido
Messages: 169
Registered: April 2006
Experienced Member
#include <CtrlLib/CtrlLib.h>

using namespace Upp;

GUI_APP_MAIN
{
	DrawingDraw dw(500, 500);
	Image img = StreamRaster::LoadFileAny("/home/guido/work/panna_cotta_espresso_02.jpg");     
    
    dw.DrawImage(500, 500, img);
	QtfRichObject pict(CreateDrawingObject(dw.GetResult(), Size(900, 600), Size(900, 600)));
	String qtf;
	qtf << pict;
	PromptOK(qtf);
}


The above gives me nothing but a white square.
I checked in the debugger that img is created properly, so why is it not drawn into the DrawingDraw object?
Another question. How do I save images into a sql(lite) database - SaveImageAsString()?

Guido
 
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 Apr 24 13:42:30 CEST 2024

Total time taken to generate the page: 0.02511 seconds