Problem with ximage

Problem with ximage

Postby Silvio.Falconi » Fri Oct 12, 2018 7:46 pm

Image

@ 20, 218 XIMAGE aGet[12] ;
FILENAME Iif(empty(cfotografia),a_Foto_default[nSex],cfotografia);
NOBORDER ;
SIZE nSizew,nSizeH ;
OF oDlg ;
UPDATE

aGet[12]:bRClicked := NIL
aGet[12]:ltransparent:=.t.
aGet[12]:nUserControl :=0



I see also the command nUserControl...why ?

and the image is not transparent why ?
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: 7057
Joined: Thu Oct 18, 2012 7:17 pm

Re: Problem with ximage

Postby Silvio.Falconi » Fri Oct 12, 2018 8:19 pm

RESOLVED

aGet[12]:bRClicked := { || 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: 7057
Joined: Thu Oct 18, 2012 7:17 pm

Re: Problem with ximage

Postby nageswaragunupudi » Sat Oct 13, 2018 12:29 am

aGet[12]:nUserControl :=0

By default, the user has full control over the image, to move, zoom, rotate, etc and the programmer has little or no control. This control was originally developed with that intention in mind.
By setting nUserControl to 0, you can disable the user from moving, zooming, rotating, etc and image will stay unchanged.
Regards

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

Re: Problem with ximage

Postby Silvio.Falconi » Sat Oct 13, 2018 8:38 am

Rao,
I wish no popups of ximage

I explain you

I made last year a test to crop a portion of Image

I need it for sample when I have an image with many people and I wish crop only one face

my test with Image class run ok as you can see here

Image

Pido disculpas a las personas representadas en esta foto
Es solo un ejemplo de cómo funciona la prueba
Lo siento por Otto, Maurizio, zazelon y Reinaldo

I apologize to the people depicted in this picture.
Sorry per Otto,Maurizio,zazelon and Reinaldo.
it's just an example of how the test works




Now I wish use Ximage ( and not use freeimage.dll) and I have many problems

because when I try to draw a RectDotted Box with the mouse with the command oImage:bLClicked

move all image and the RectDotted Box is not draw on the image

On old test ( with Image class)

@ 0, 0 XIMAGE oImage SIZE 280, 200 OF oCattura

oImage:bLClicked = { | nRow, nCol | MouseDown( oImage:oVScroll:GetPos()+nRow, oImage:oHScroll:GetPos()+nCol) }



then I cannot converte this command "oImage:oVScroll:GetPos()+nRow" run good with Image

It not Found getpos() with is the getpos() of ximage class?

I need it because can be the image is big and I use vertical and horiz scroll

when I move the mouse on a point I must draw the RectDotted Box to crop the area
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: 7057
Joined: Thu Oct 18, 2012 7:17 pm

Re: Problem with ximage

Postby nageswaragunupudi » Sat Oct 13, 2018 10:09 am

Ximage is different.
For your purpose, you need to use Image only.
Regards

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

Re: Problem with ximage

Postby Silvio.Falconi » Sat Oct 13, 2018 2:24 pm

ok
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: 7057
Joined: Thu Oct 18, 2012 7:17 pm

Re: Problem with ximage

Postby nageswaragunupudi » Tue Oct 16, 2018 6:24 pm

You induce me to make improvements

viewtopic.php?f=3&t=36222
Regards

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

Re: Problem with ximage

Postby Silvio.Falconi » Tue Oct 16, 2018 6:54 pm

Do you see my class TCropImage publish on github ?
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: 7057
Joined: Thu Oct 18, 2012 7:17 pm

Re: Problem with ximage

Postby nageswaragunupudi » Tue Oct 16, 2018 7:04 pm

I did not see.
Regards

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

Re: Problem with ximage

Postby Silvio.Falconi » Tue Oct 16, 2018 7:26 pm

I wait to purchase the new rel of fwh I need that modify
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: 7057
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 115 guests