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 » Developing U++ » UppHub » Scatter : getDrawing !!!! help !!!!
Re: Scatter : getDrawing !!!! help !!!! [message #29032 is a reply to message #29031] Sat, 02 October 2010 23:48 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3361
Registered: August 2008
Senior Veteran
Hello Didier

I have included GetDrawing() (excellent idea, the pdfs are smaller now Smile), and it have worked very well for me, including circles. I have changed the Drawing scale and the results have been the same, I cannot find "magic" numbers Smile.

The previous code is now simpler:

Report r;

r.NewPage();
Topic t = GetTopic("topic://MyPackage/MyReport$en-en");
String qtf = t.text;	
Drawing drw = scatter.GetDrawing();
{
	QtfRichObject pict(CreateDrawingObject(drw, Size(width, height), Size(width, height)));

	String qtfG;
	String token = "[Graph]"
	int pos = qtf.Find(DeQtf(token));
	qtfG << qtf.Left(pos) << pict << qtf.Mid(token.GetCount());
	
	r << qtfG;
}


I think scaling is much less important in a Drawing than in a Image.

Could you include a simple test case?





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
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Scatter: Propose to add new methods
Next Topic: Themes
Goto Forum:
  


Current Time: Fri May 10 09:37:33 CEST 2024

Total time taken to generate the page: 0.02747 seconds