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... » Bad text quality problem in Qtf
Re: Bad text quality problem in Qtf [message #24584 is a reply to message #24569] Mon, 25 January 2010 09:59 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3443
Registered: August 2008
Senior Veteran
Hello Mirek

It seems not a problem of RichEdit itself.

Just before PromptOK there are now two lines to save the image and it looks perfect.

GUI_APP_MAIN
{
	ImageDraw idw(1200, 600);
	idw.DrawRect(0, 0, 1200, 600, White);
	idw.DrawText(0, 0, "(Hello)", Serif(400));
	
	DrawingDraw dw(350, 250);
	dw.DrawImage(0, 0, 350, 250, idw); 
	
	QtfRichObject pict(CreateDrawingObject(dw.GetResult(), Size(350, 250), Size(350, 250)));
	
	/**/	PNGEncoder png;	
	/**/	png.SaveFile("c:\\kk.png", pict.obj.ToImage(Size(350, 250)));
	
	PromptOK(String("[A5 Rendering problem: ") + pict.ToString());
}


Best regards
Koldo


Best regards
IƱaki
 
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
Read Message
Previous Topic: UWord and Windows fole association
Next Topic: Default font and fontsize in RichEdit
Goto Forum:
  


Current Time: Sun Aug 24 15:40:28 CEST 2025

Total time taken to generate the page: 0.04847 seconds