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 » Community » Newbie corner » Save sccatterCtrl to png: resolution
Save sccatterCtrl to png: resolution [message #48279] Wed, 14 June 2017 12:06 Go to next message
Giorgio is currently offline  Giorgio
Messages: 218
Registered: August 2015
Experienced Member
Hi there,
still playing around with scatterCtrl and have a new question. Embarassed
When saving the scatterCtrl to a png with SaveToFile(), the resulting .png file has a very low resolution; the scatterCtrl on screen has a much higher resolution and if I use the Report is even higher; is there a way to set an higher resolution?
Thanks,
Gio
Re: Save sccatterCtrl to png: resolution [message #48284 is a reply to message #48279] Wed, 14 June 2017 13:10 Go to previous messageGo to next message
Giorgio is currently offline  Giorgio
Messages: 218
Registered: August 2015
Experienced Member
I got myself an answer: using PNGEncoder did the trick; anyway, I wonder if there is a way to change resolution with SaveToFile():
Re: Save sccatterCtrl to png: resolution [message #48285 is a reply to message #48279] Wed, 14 June 2017 14:06 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Dear Giorgio

Before calling SaveToFile() you can use SetSize(Size sz) to set the control size and SetCopyRatio(int ratio) to set the scale.


Best regards
IƱaki
Re: Save sccatterCtrl to png: resolution [message #48298 is a reply to message #48285] Fri, 16 June 2017 12:51 Go to previous message
Giorgio is currently offline  Giorgio
Messages: 218
Registered: August 2015
Experienced Member
Thank you Smile
Previous Topic: Adding a text box in a scatterDraw/ScatterCtrl
Next Topic: Non-modal - Dialog will not stay open
Goto Forum:
  


Current Time: Thu Mar 28 16:57:24 CET 2024

Total time taken to generate the page: 0.01503 seconds