Page 2 of 2

Re: Bug in TBitmap

PostPosted: Sat Mar 10, 2018 1:55 pm
by Enrico Maria Giordano
This bug is still present in FWH 18.02. :-(

EMG

Re: Bug in TBitmap

PostPosted: Thu Mar 15, 2018 10:23 am
by Enrico Maria Giordano
Any news?

EMG

Re: Bug in TBitmap

PostPosted: Sat Mar 24, 2018 9:13 am
by Enrico Maria Giordano
Any chance to have this fixed? Or, at least, any workaround?

EMG

Re: Bug in TBitmap

PostPosted: Sat Mar 24, 2018 10:40 am
by Antonio Linares
Enrico,

In function FW_ReadImage() at FWH\source\function\imgtxtio.prg please modify this:

elseif ( UseGDI() .or. lGdipImage ) .and. cExt $ "PNG,JPG,JPEG,GIF,TIF,TIFF,EMF,WMF"

with

elseif ( UseGDI() .or. lGdipImage ) .and. cExt $ "PNG,JPG,JPEG,GIF,TIF,TIFF,EMF,WMF,PAK"

Re: Bug in TBitmap

PostPosted: Sat Mar 24, 2018 10:49 am
by Enrico Maria Giordano
I don't like this fix very much. What if I'd want to load an image with a different extension? Better having a default format used for any unknown extension.

EMG

Re: Bug in TBitmap

PostPosted: Sat Mar 24, 2018 11:11 am
by Antonio Linares
Enrico,

> Better having a default format used for any unknown extension

There is no a default format for unknown extensions

Why don't you want to use the standard format BMP ?

Re: Bug in TBitmap

PostPosted: Sat Mar 24, 2018 11:21 am
by Enrico Maria Giordano
Antonio Linares wrote:There is no a default format for unknown extensions


I know. That's why I proposed to implement a default format so that we can use any extension for an image of that default format (ie. if default format is BMP we can use TEST.PAK or TEST.ABC instead of TEST.BMP).

Antonio Linares wrote:Why don't you want to use the standard format BMP ?


I'm using a BMP renamed PAK (customer request, sorry).

Please note that it used to work in previous FWH releases.

EMG

Re: Bug in TBitmap

PostPosted: Sat Mar 24, 2018 12:02 pm
by nageswaragunupudi
The present code recognizes the image type by the file extension.
We will modify the function to recognize bmp files renamed to any non-image file type extension and communicate the revision to you asap.

Re: Bug in TBitmap

PostPosted: Sat Mar 24, 2018 12:40 pm
by Enrico Maria Giordano
Thank you.

EMG