elegant only provides a data file that is then plotted by sddsplot. sddsplot produces PNGs, EPS, and various other formats. For some of these, like EPS, the concept of pixel/mm doesn't even exist because they are vector formats. Others, like PNG, are general purpose graphics formats that do no include the ability to encode pixels/mm. (For example, if you took a picture of a cat and stored that in PNG, would you expect to be able to determine pixels/mm from the PNG?)Joytop wrote:Dear Michael,
I almost cannot beleive there is no way to know the variable(mm/pixel) of the PNG file produced by elegant because when the elegant use sddsplot to plot a x-y image, elegant should know how many pixels will be used inside the axis of coordinates. I did not meant that I should know pixel/mm only by the picture itself. Anyway , I just want to know the mm/pixel or pixel/mm that have been determined by elegant when the picture was produced by sddsplot. So, I have also tried the sddsplot to set the number of grids of the region inside the axis of coordinates which only include the particles. But I am still failed. Please help me to reach the goal, which I have tooken more than 15 days to resolve the problem and I really have no ideas about this! Please help me! Please!
Regards!
Joy
It is hard for me to understand exactly why you want to do this. What are you trying to accomplish using the PNG files and why not just use the *data* produced by elegant to perform the necessary computations?
--Michael