using JR to export to bitmap, and scale question
Posted: Sat Aug 20, 2005 5:44 pm
hi david,
i'm still plugging away at my project! i promise to send you a copy to try out, really. you may recall that i am working with GPS/Sonar data and making bathymetric charts with the goal of being able to upload the data back to the GPS unit. right now i have everything working except converting the contour lines in the plot to coordinates. so....
here is my bit map question: when you set the dplot.plot command to save to a bitmap is the bitmap always the same size? or is the actual plot contained in the bitmap always the same(for example if i did not send a title that might make the whole image smaller but the plot area might still be the same)
the reason that i want to know is that i am going to take a plot from JR save it as a bitmap then i am going to scan the bit map bit by bit and record the bits which are black so that i can generate co-ordinates for each black bit. then i can use the coordinates in my app to do some cool stuff, well it will be cool to me at least.
now my scale question: supposing that the bitmap is always the same, can i set the scale of the plot at runtime? i am almost sure that i can, but have not really played to much in trying.
what i would like to have happen is to find that the bitmap is always some size, for example 500x500, then i could set the scale for x to be 100-600 and the scale for y to be 450-950 and i would have a 1 unit to 1 bit "conversion" to get coordinates. this is of course a simplistic example but i think you understand my idea.
one more thing that just popped into my mind: suppose i have some data that when sent to JR results in four contour lines one each at z=5, 10 15 and 20. but i only want to plot the z=10 line. can i simply reset the number of contour lines and the spacing in my command line so that i just get one contour and have it be the same as if i plotted the whole thing? my hunch is that yes i can, that i would be in essence just turning off the other lines.
thanks a bunch,
jerry
i'm still plugging away at my project! i promise to send you a copy to try out, really. you may recall that i am working with GPS/Sonar data and making bathymetric charts with the goal of being able to upload the data back to the GPS unit. right now i have everything working except converting the contour lines in the plot to coordinates. so....
here is my bit map question: when you set the dplot.plot command to save to a bitmap is the bitmap always the same size? or is the actual plot contained in the bitmap always the same(for example if i did not send a title that might make the whole image smaller but the plot area might still be the same)
the reason that i want to know is that i am going to take a plot from JR save it as a bitmap then i am going to scan the bit map bit by bit and record the bits which are black so that i can generate co-ordinates for each black bit. then i can use the coordinates in my app to do some cool stuff, well it will be cool to me at least.
now my scale question: supposing that the bitmap is always the same, can i set the scale of the plot at runtime? i am almost sure that i can, but have not really played to much in trying.
what i would like to have happen is to find that the bitmap is always some size, for example 500x500, then i could set the scale for x to be 100-600 and the scale for y to be 450-950 and i would have a 1 unit to 1 bit "conversion" to get coordinates. this is of course a simplistic example but i think you understand my idea.
one more thing that just popped into my mind: suppose i have some data that when sent to JR results in four contour lines one each at z=5, 10 15 and 20. but i only want to plot the z=10 line. can i simply reset the number of contour lines and the spacing in my command line so that i just get one contour and have it be the same as if i plotted the whole thing? my hunch is that yes i can, that i would be in essence just turning off the other lines.
thanks a bunch,
jerry