GetImage with xImage

GetImage with xImage

Postby Silvio.Falconi » Sat Feb 18, 2023 6: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 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: 7075
Joined: Thu Oct 18, 2012 7:17 pm

Re: GetImage with xImage

Postby karinha » Sat Feb 18, 2023 7:10 pm

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

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7835
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 89 guests