I'm using PBWin 9 and DDT in Vista Home Premium. I'm loading bitmap files into an in-memory bitmap with GRAPHIC BITMAP LOAD, getting it's size, calculating the size graphic control I need to place it confortably on my dialog and then creating the graphic control and moving it into it with GRAPHIC STRETCH.
This is all working just fine but if the bitmap is more than just a little bigger than I have room for there's a lot of distortion. Really a lot. But I can use Irfanview to shrink the picture to close to the right size and try it again there's no distortion. It seems as though GRAPHIC STRETCH's resizing method is a poor one.
I don't think it's anything I'm doing wrong although it may well be that this isn't the best approach to doing this. The process is pretty straightforward and, except for the distortion, seems to be working fine. And there's no distortion if the bitmap file is within about 20% of the size of the control that's created for it. More than that and there is.
Does anyone have any ideas about this? Is there a better approach to this? Am I doing it wrong and not realizing it? I'd like this thing to be able to deal with any size bitmap. If I can't solve this I can live with it. It's a program for my own use and I can use Irfanview to pre-shrink the bitmaps but I'd rather not and also I'd like to know what's going on.
Any suggestions will be very much appreciated.
Thanks,
Barry
This is all working just fine but if the bitmap is more than just a little bigger than I have room for there's a lot of distortion. Really a lot. But I can use Irfanview to shrink the picture to close to the right size and try it again there's no distortion. It seems as though GRAPHIC STRETCH's resizing method is a poor one.
I don't think it's anything I'm doing wrong although it may well be that this isn't the best approach to doing this. The process is pretty straightforward and, except for the distortion, seems to be working fine. And there's no distortion if the bitmap file is within about 20% of the size of the control that's created for it. More than that and there is.
Does anyone have any ideas about this? Is there a better approach to this? Am I doing it wrong and not realizing it? I'd like this thing to be able to deal with any size bitmap. If I can't solve this I can live with it. It's a program for my own use and I can use Irfanview to pre-shrink the bitmaps but I'd rather not and also I'd like to know what's going on.
Any suggestions will be very much appreciated.
Thanks,
Barry
Comment