Images vs Graphs - Zooming In/Out

About Zooming In or Out, the concept is fairly logical. When dealing with images we follow a different technique as compared to graphs.
 
In case of Images Zooming In ( making the picture bigger ) actually copies each pixel's value arround itself in all directions.
For instance consider the following is pixels values from an arbitrary location within an image.
                         
89  56  74                   82 82 82 
 4  82   5    When Zoomed    82 82 82  i.e. The pixel at the middle
66   2  19                   82 82 82     is copied in its vacinity
 
and the same rule is followed for other pixels.
 
Moreover the image quality is maintained by such method that the picture doesnt have same colored blogs, instead all the zoomed pixel should be kind of merged and must give the same look as that of the orignal image.
Windows Picture Manager have this capability of Zooming In and Out images.
 
Now coming to Graphs. The contents within any graph are bit different from that of image.
Although some graphs can be dealt like that of images, yet most of the graphs cannot be.
For instance in terms of Graph Zooming consider the following example.
Suppose that (*) represents a computer in a huge Network Mesh Graph. Following is just an excerpt of it:

    *--------*--------*  When Zoomed          *-------------------------*-------------------------*  
 
i.e. the object (Computer) size remained the same where as DISTANCE got increased. This is the tip to get the foot into the door.
We increase the INTER-OBJECT DISTANCE and the whole graphs seemed zoomed.
 
In terms of Graphs of other types like XYPlot or BAR Chart, somewhat same kind of technique can be adopted i.e. we increase
the DISTANCE relative to the objects.
 
What you have to do is to find the final destination of a pixel from the initial destination using a particular
SELF-DEVELOPED formula and than just RE-POSITION the pixel to the new location.
 
About CChartView and any other Microsoft Technology control, the best location to find your answer is MSDN. 
Also within MSDN there is sub-category in the Contents tab namely "Knowledge Base", in which developers ask there problems and Microsoft guys answers them.
Hopefully you will find your required help there as well.

Comments

Popular posts from this blog

Imote2 with Camera setup IMB400 over Ubuntu 9.10/10.04

Branch and bound algorithm in C#- Article by AsiF Munir

Tensorflow - Simplest Gradient Descent using GradientDescentOptimizer