I would like to load an image using BT, but be flexible enough to resize the image within HMG
BT has such a copy/resize function, however it did not behave as expected. The image bitmap copy version did not
have the same colors as the original.
The code I used to test the feature is shown below. I tried different parameters instead of BT_SCALE,BT_RESIZE_BILINEAR
but the result was just the same, ie. the colors did not match even when the copy was made without a size change.
aColor from aDC1 was BLACK but aColorx in hDC2 was whitehBitMap1:=BT_BitmapLoadFile ("Test.jpg")
hDC1:=BT_CreateDC(hBitmap1, BT_HDC_BITMAP , @BTstruct)
hDC2:=BT_BitmapCopyAndResize (hBitmap1, nXFullSize, nYFullSize, BT_SCALE,BT_RESIZE_BILINEAR)
aColor:=BT_DrawGetPixel (hDC1, 0,29 )
aColorx:=BT_DrawGetPixel (hDC2, 0,20 )
If anyone has tried to use this BT capablilty, please let me know if I am doing anything wrong.
Thanks all