Page 1 of 1
READPALBMPEX
Posted: Fri Nov 29, 2024 1:02 pm
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.
Re: READPALBMPEX
Posted: Fri Nov 29, 2024 1:28 pm
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 ] )
Re: READPALBMPEX
Posted: Fri Nov 29, 2024 1:33 pm
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 !!!!
Re: READPALBMPEX
Posted: Fri Nov 29, 2024 1:51 pm
by Silvio.Falconi
perhaps I resolved
Re: READPALBMPEX
Posted: Fri Nov 29, 2024 1:56 pm
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
Re: READPALBMPEX
Posted: Sat Nov 30, 2024 8:29 pm
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, )