FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour READPALBMPEX
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
READPALBMPEX
Posted: Fri Nov 29, 2024 01:02 PM

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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: READPALBMPEX
Posted: Fri Nov 29, 2024 01:28 PM
I am not aware of this method,
But you can use
Code (fw): Select all Collapse
aImg := oWnd:ReadImage( cImage, { width, height } )
XImage( aImg[ 1 ] )
Regards



G. N. Rao.

Hyderabad, India
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
Re: READPALBMPEX
Posted: Fri Nov 29, 2024 01:33 PM
nageswaragunupudi wrote:I am not aware of this method,
But you can use
Code (fw): Select all Collapse
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
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
Re: READPALBMPEX
Posted: Fri Nov 29, 2024 01:51 PM

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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: READPALBMPEX
Posted: Fri Nov 29, 2024 01:56 PM
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
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
Re: READPALBMPEX
Posted: Sat Nov 30, 2024 08:29 PM
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

Continue the discussion