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

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: 3460
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: Tue Jun 23 06:23:03 GMT+2 2026

Total time taken to generate the page: 0.00674 seconds