|
How to load image and zoom in/zoom out it |
Posted by Zudeng on Oct-23-2017 15:12 |
|
Dears,
I try to load image file using DrawArea.loadPNG. Image file was loaded successfully, but it seems can not zoom in or zoom out for loaded image. Is there any way to zoom in/ zoom out a loaded image?
I am using ChartDirector 5.1 in C++.
Thanks,
Zudeng |
Re: How to load image and zoom in/zoom out it |
Posted by Peter Kwan on Oct-24-2017 19:44 |
|
Hi Zudeng,
ChartDirector zooming support is for zooming in XY charts.
Note that zooming means to display the chart in more or less details. It does not mean to make things in the chart looks bigger. It is like zooming in Google Map. When you zoom out a map, you may see rivers and mountains. When you zoom in, you can see buildings. You may notice the text size and line widths in the map is not change. It shows that zooming in does not make the text or line or anything bigger. It just shows more details. The same applies to zooming in a chart.
There are some video demonstrates on what is zoom in and out. May be you can take a look:
http://www.advsofteng.com/gallery_zoomscroll.html
You can find that the text size, line width, margins, etc., are not changed when zooming in. Instead, the chart shows different axis range.
Zooming in an image is a completely different thing. In most GUI framework, you can zoom in/out an image directly without any third party software. Would mind to clarify which GUI framework you are using (MFC or Qt)?
Regards
Peter Kwan |
|