FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problem with ximage
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Problem with ximage
Posted: Fri Oct 12, 2018 07:46 PM


@ 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 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: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Problem with ximage
Posted: Fri Oct 12, 2018 08:19 PM

RESOLVED

aGet[12]:bRClicked := { || 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: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Problem with ximage
Posted: 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
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Problem with ximage
Posted: Sat Oct 13, 2018 08: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




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:GetPos()+nRow, oImage:GetPos()+nCol) }



then I cannot converte this command "oImage: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 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: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Problem with ximage
Posted: 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
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Problem with ximage
Posted: Sat Oct 13, 2018 02:24 PM

ok

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: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Problem with ximage
Posted: Tue Oct 16, 2018 06:24 PM

You induce me to make improvements

viewtopic.php?f=3t=36222

&

Regards



G. N. Rao.

Hyderabad, India
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Problem with ximage
Posted: Tue Oct 16, 2018 06: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 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: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Problem with ximage
Posted: Tue Oct 16, 2018 07:04 PM

I did not see.

Regards



G. N. Rao.

Hyderabad, India
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Problem with ximage
Posted: Tue Oct 16, 2018 07: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 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

Continue the discussion