by olglover » Sun Dec 12, 2010 10:04 pm
Thanks Tom.\
I am using the GdPicture Pro package in "Demo" mode.
Following your pattern I wrote the following code in VFP. The crop method is still returning a value of 1 "GenericError" when called. In addition, after the code below had run, nothing else on the form (zoom, rotate, etc...) works at all.
*First set area to crop
nleft = 0
ntop = 0
nwidth = 100
nheight = 100
THIS.ogdviewer.setrectvalues (nleft, ntop, nwidth, nheight)
*now crop to that area'
IF THIS.ogdviewer.isrectdrawed
THIS.ogdviewer.getrectvalues(nleft, ntop, nwidth, nheight)
IF THIS.oimaging.crop(nleft, ntop, nwidth, nheight) > 0
WAIT WINDOW "Error # "+STR(THIS.oimaging.crop(nleft, ntop, nwidth, nheight))
ENDIF
THIS.ogdviewer.setnativeimage(THIS.oimaging.getnativeimage)
ELSE
WAIT WINDOW "There is no selection made!"
ENDIF
BTW: I'm running Win7 64bit.