Home » U++ Library support » RichText,QTF,RTF... » Loading Image into qtf  
	
		
		
			| Loading Image into qtf [message #9913] | 
			Fri, 08 June 2007 12:18   | 
		 
		
			
				
				
				
					
						  
						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
		
		
		
 |  
	| 
		
	 | 
 
 
 |  
  
 
	
	  | 
	 | 
	
		Loading Image into qtf
		By:  guido on Fri, 08 June 2007 12:18  
	 | 
 
	  | 
	 | 
	
		Re: Loading Image into qtf
		By:  mirek on Fri, 08 June 2007 15:58  
	 | 
 
	  | 
	 | 
	
		Re: Loading Image into qtf
		By:  guido on Sat, 09 June 2007 14:18  
	 | 
 
	  | 
	 | 
	
		Re: Loading Image into qtf
		By:  mirek on Sat, 09 June 2007 18:54  
	 | 
 
	  | 
	 | 
	
		Re: Loading Image into qtf
		By:  forlano on Mon, 27 August 2007 19:32  
	 | 
 
	  | 
	 | 
	
		Re: Loading Image into qtf
		By:  forlano on Mon, 27 August 2007 19:57  
	 | 
 
	  | 
	 | 
	
		Re: Loading Image into qtf
		By:  forlano on Mon, 27 August 2007 23:38  
	 | 
 
	  | 
	 | 
	
		Re: Loading Image into qtf
		By:  mirek on Tue, 28 August 2007 13:10  
	 | 
 
	  | 
	 | 
	
		Re: Loading Image into qtf
		By:  forlano on Wed, 29 August 2007 00:23  
	 | 
 
	  | 
	 | 
	
		Re: Loading Image into qtf
		By:  mirek on Wed, 29 August 2007 11:26  
	 | 
 
	  | 
	 | 
	
		Re: Loading Image into qtf
		By:  forlano on Wed, 29 August 2007 12:21  
	 | 
 
	  | 
	 | 
	
		Re: Loading Image into qtf
		By:  dmcgeoch on Tue, 28 August 2007 12:58  
	 | 
 
	  | 
	 | 
	
		Re: Loading Image into qtf
		By:  guido on Tue, 28 August 2007 16:31  
	 | 
  
Goto Forum:
 
 Current Time: Tue Nov 04 13:59:54 CET 2025 
 Total time taken to generate the page: 0.04221 seconds 
 |