Problem with Plotmetrics
Posted: Fri Mar 13, 2009 6:00 am
I have had a look round the forum and can't find any previous posts of this problem, my appologies if it is already elsewhere.
I have been interfacing with dplot using the dplotlib to achieve some graphing functions with VB.net 2008. I have been using the DPLOT_GetBitmapEx function and have noticed a strange anomoly.
It would appear that when the bitmap requested becomes small that the program whilst retruning the requested sized bitmap does not provide the correct metrics as it changes the bitmap from being one drawn at the requested size to one that is generated at the default size and then scaled to the requested size.
In way of example when i request a 310×344 bitmap the retuned metrics are:
hll=55
vll=300
hur=292
vur=34
whereas a small chane in requested size 265×344 returns:
hll=55
vll=644
hur=512
vur=34
given the rest of the information returned i cannot find the size of the plot on which the metrics are based and therefore cannot work out how to scale the metrics to suit the retruned bitmap.
Am I doing something stupid?
I have been interfacing with dplot using the dplotlib to achieve some graphing functions with VB.net 2008. I have been using the DPLOT_GetBitmapEx function and have noticed a strange anomoly.
It would appear that when the bitmap requested becomes small that the program whilst retruning the requested sized bitmap does not provide the correct metrics as it changes the bitmap from being one drawn at the requested size to one that is generated at the default size and then scaled to the requested size.
In way of example when i request a 310×344 bitmap the retuned metrics are:
hll=55
vll=300
hur=292
vur=34
whereas a small chane in requested size 265×344 returns:
hll=55
vll=644
hur=512
vur=34
given the rest of the information returned i cannot find the size of the plot on which the metrics are based and therefore cannot work out how to scale the metrics to suit the retruned bitmap.
Am I doing something stupid?