READPALBMPEX

Post Reply
User avatar
Silvio.Falconi
Posts: 7187
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 9 times

READPALBMPEX

Post by Silvio.Falconi »

on oldest class I use

::Empty_Img := ::ReadPalBmpEx( cEmptyImg)

give me error not found method ...why ?

on note .txt I found

New: Method ReadPalBmpEx( uSource, [aResize] ) class TWindow
--> { hBitmap, hPalette, nBmpWidth, nBmpHeight, lAlpha, cName, lResource }
uSource can be bmpfile, resource, any imagefile, image buffer from memory
or handle of a bitmap. Optional aResize is { nWidth, nHeight, nReizeMode }
will resize the image to the new dimensions.
This method is intended to be used by different controls. As of now
TBtnBmp uses this method.
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
nageswaragunupudi
Posts: 10733
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 11 times
Contact:

Re: READPALBMPEX

Post by nageswaragunupudi »

I am not aware of this method,
But you can use

Code: Select all | Expand

aImg := oWnd:ReadImage( cImage, { width, height } )
XImage( aImg[ 1 ] )
Regards

G. N. Rao.
Hyderabad, India
User avatar
Silvio.Falconi
Posts: 7187
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 9 times

Re: READPALBMPEX

Post by Silvio.Falconi »

nageswaragunupudi wrote:I am not aware of this method,
But you can use

Code: Select all | Expand

aImg := oWnd:ReadImage( cImage, { width, height } )
XImage( aImg[ 1 ] )

why did you change this function, now I can't use a class made on 2018 ...Incredible !!!!
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
Posts: 7187
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 9 times

Re: READPALBMPEX

Post by Silvio.Falconi »

perhaps I resolved
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
nageswaragunupudi
Posts: 10733
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 11 times
Contact:

Re: READPALBMPEX

Post by nageswaragunupudi »

why did you change this function, now I can't use a class made on 2018 ...Incredible !!!!
Which FWH version are you referring to?
There is no FWH2018. ( last 2 digits indicate the month and there is no month 18)
Please let me know the correct version.

ps:
Yes. This method was first introduced in FWH1501 (Jan 2015)
Later changed as ReadImage.
Sorry, we did not keep backward compatibility.
But it is the same functionality
Regards

G. N. Rao.
Hyderabad, India
User avatar
Silvio.Falconi
Posts: 7187
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 9 times

Re: READPALBMPEX

Post by Silvio.Falconi »

nageswaragunupudi wrote:
why did you change this function, now I can't use a class made on 2018 ...Incredible !!!!
Which FWH version are you referring to?
There is no FWH2018. ( last 2 digits indicate the month and there is no month 18)
Please let me know the correct version.

ps:
Yes. This method was first introduced in FWH1501 (Jan 2015)
Later changed as ReadImage.
Sorry, we did not keep backward compatibility.
But it is the same functionality
I created an object class in 2018, at that time I was using the fwh December 2017 version and the READPALBMPEX function still worked since I used that class in an application of mine that I had to recompile in recent days and I realized that that function no longer existed, however I can tell you that it works I changed the READPALBMPEX function with ReadImage and it seems that it started working again even if I did not define { width, height } but only ReadImage( cImage, )
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Post Reply