XIMAGE ERROR

Post Reply
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

XIMAGE ERROR

Post by Silvio.Falconi »

WHY IT MAKE ERROR ?

...
Local cImgFileCropped:= "default.jpg"
..
@ 20, 330 XIMAGE oImageCropped SIZE 80, 80 OF oCattura PIXEL NOBORDER

...
ACTIVATE DIALOG oCattura CENTERED ;
on init oImageCropped:LoadImage( cImgFileCropped )
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
sreerajklm
Posts: 5
Joined: Tue Sep 23, 2014 5:22 am
Location: Kochi, India

Re: XIMAGE ERROR

Post by sreerajklm »

Try This,

Code: Select all

#include "fivewin.ch"

Function TestshowImg()

Local oCattura,oImageCropped
Local cImgFileCropped:= "D:\fwh\bitmaps\fivetech.bmp"

DEFINE DIALOG oCattura SIZE 400,400 PIXEL

@ 40, 60 XIMAGE oImageCropped SIZE 80, 80 OF oCattura PIXEL NOBORDER


ACTIVATE DIALOG oCattura CENTERED ;
ON INIT (oImageCropped:SetSource( cImgFileCropped ),oImageCropped:Refresh())

Return nil
Regards
Sreeraj
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: XIMAGE ERROR

Post by Silvio.Falconi »

How I can load an image from OneDrive ?
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: XIMAGE ERROR

Post by nageswaragunupudi »

Silvio.Falconi wrote: WHY IT MAKE ERROR ?

...
Local cImgFileCropped:= "default.jpg"
..
@ 20, 330 XIMAGE oImageCropped SIZE 80, 80 OF oCattura PIXEL NOBORDER

...
ACTIVATE DIALOG oCattura CENTERED ;
on init oImageCropped:LoadImage( cImgFileCropped )

Code: Select all

Local cImgFileCropped:= "default.jpg"
..
@ 20, 330 XIMAGE oImageCropped SOURCE cImgFileCropped SIZE 80, 80 OF oCattura NOBORDER

...
ACTIVATE DIALOG oCattura CENTERED

 
Regards

G. N. Rao.
Hyderabad, India
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: XIMAGE ERROR

Post by Silvio.Falconi »

xmage use freeimage.dll ?
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: XIMAGE ERROR

Post by cnavarro »

No
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
Post Reply