READPALBMPEX

READPALBMPEX

Postby Silvio.Falconi » Fri Nov 29, 2024 1: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 November 2023 - January 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: 7090
Joined: Thu Oct 18, 2012 7:17 pm

Re: READPALBMPEX

Postby nageswaragunupudi » Fri Nov 29, 2024 1:28 pm

I am not aware of this method,
But you can use
Code: Select all  Expand view  RUN
aImg := oWnd:ReadImage( cImage, { width, height } )
XImage( aImg[ 1 ] )
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10690
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: READPALBMPEX

Postby Silvio.Falconi » Fri Nov 29, 2024 1:33 pm

nageswaragunupudi wrote:I am not aware of this method,
But you can use
Code: Select all  Expand view  RUN
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 November 2023 - January 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: 7090
Joined: Thu Oct 18, 2012 7:17 pm

Re: READPALBMPEX

Postby Silvio.Falconi » Fri Nov 29, 2024 1:51 pm

perhaps I resolved
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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: 7090
Joined: Thu Oct 18, 2012 7:17 pm

Re: READPALBMPEX

Postby nageswaragunupudi » Fri Nov 29, 2024 1: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
User avatar
nageswaragunupudi
 
Posts: 10690
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: READPALBMPEX

Postby Silvio.Falconi » Sat Nov 30, 2024 8: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 November 2023 - January 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: 7090
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 98 guests