FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour GetImage with xImage
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
GetImage with xImage
Posted: Sat Feb 18, 2023 06:32 PM

I have this but not run

@ nRow, 440 XIMAGE oImage ;

         FILENAME IF(empty(cImmagine ),cDefaImage,cImmagine  );//  NOBORDER ;

         SIZE 350,174 ;

         OF oDlg ;

         UPDATE

@ nRow, oDlg:nWidth-50 BTNBMP oBtnSel[6] FLAT SIZE 30, 24 OF oDlg PIXEL ;

            COLOR  nRgb(238,236,219),nRgb(238,236,219) ;

            BITMAP ".\bitmaps\folder_add.png" NOROUND;

            ACTION  (cImmagine:= GetImage(oImage),oImage:SetSource( cImmagine ) )

function GetImage(oImage)

local gcFile := cGetFile("PNG (.png)| .png|" + ;

                         "Bitmap (*.bmp)| *.bmp|" +         ;

                         "JPEG  (*.jpg)| *.jpg|" +          ;

                         "GIF   (*.gif)| *.gif|"  +         ;

                         "All Files (*.*)| *.*"             ;

                        ,"Per favore seleziona un file immagine", 4 )

if ! Empty( gcFile ) .and. File( gcFile )

 oImage:LoadBmp( gcFile )

endif

the function GetImage(oImage) come from Image class ( freeImag.dll) and not with xImage

Any Help ?

return nil

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: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: GetImage with xImage
Posted: Sat Feb 18, 2023 07:10 PM

Look, c:\fwh\samples\IMGCONV.PRG pls.

Regards, saludos.

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341

Continue the discussion