EMG
Bug in TBitmap [Fixed]
- Enrico Maria Giordano
- Posts: 9053
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 43 times
- Contact:
- Enrico Maria Giordano
- Posts: 9053
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 43 times
- Contact:
- Enrico Maria Giordano
- Posts: 9053
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 43 times
- Contact:
- Antonio Linares
- Site Admin
- Posts: 44508
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 717 times
- Been thanked: 311 times
- Contact:
Re: Bug in TBitmap
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"
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"
- Enrico Maria Giordano
- Posts: 9053
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 43 times
- Contact:
Re: Bug in TBitmap
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
EMG
- Antonio Linares
- Site Admin
- Posts: 44508
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 717 times
- Been thanked: 311 times
- Contact:
Re: Bug in TBitmap
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 ?
> 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 ?
- Enrico Maria Giordano
- Posts: 9053
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 43 times
- Contact:
Re: Bug in TBitmap
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
- nageswaragunupudi
- Posts: 10733
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 12 times
- Contact:
Re: Bug in TBitmap
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.
We will modify the function to recognize bmp files renamed to any non-image file type extension and communicate the revision to you asap.
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
- Enrico Maria Giordano
- Posts: 9053
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 43 times
- Contact: