... us attempt to describe. nRotate: Degrees. Positive values for anti-clockwise and negative values for clockwise rotation. (Same in XImage also). nZoom: 1.0 is same size. Less than 1.0 is reduction (unZoom). 0.75 means 75% of the size. Values greater than 1.0 means zoom (enlargement). 2.5 means ...
FW_TransformBitmap( hBitmap, [aCrop], [nZoom], [nRotate] ) --> modified bitmap Parameters are self explanatory. not so much.. aCrop are {top,left,height,width} or {left,top,right,bottom} or .... what they mean, in the example there are a ...
... cFileBmp ) --> lSuccess * New: function FW_SaveHIconToIco( hIcon, cFileIco ) -- lSuccess * New: function FW_TransformBitmap( hBmp, [aCrop], [nZoom], [nRotate] ) --> hNewBmp Function to crop, zoom and rotate a bitmap handle. * Support for converting Applications from DOS to Fivewin: - @ ...
... but the image is too big , I wish have a small image I see black background why ? then I not understood how run the zoom i try with oImagePreview:nZoom(5) but not happen nothing
... 125 % zoom works as well. it means only 2 possible adjustments are needed : factor 1,25 for 125 % zoom and 1.5 if 150 % zoom is used. I tested : nZoom := GetScaleFactorForDevice( 0 ) MsgAlert( nZoom, "Zoom-factor" ) > returns 100 % ( 125 % is needed ) Is there maybe another function ...
... > does not work ? http://www.pflegeplus.com/IMAGES/Zoomer1.jpg From sample < zoomer2.prg > FUNCTION getcolor(ownd,nzoom) local hDeskTop := GetDC(0) local a := GetCursorPos() local nColor := GetPixel( hDeskTop, a[2], a[1] ) local hDC := oWnd:GetDC() local nTop := ...
... , then I must press canc button on my keyboard 4. when I crop the image I wish zoom the image cropped . I tried also inserting oImageCropped:nZoom:= 2 before the save of imagecropped but it not run ok it draw a black space ..how I can zoom it ? I hope there is one can help me thanks in advane
There is a TImage object (not xImage). As you can zoom/unzoom it ? Yes, TImage has a Method Zoom( nZoom ) not exactly what I wanted. My TImage stretch to fit the dialog. I would like to cut, more or less, TImage rectangle and stretch it to fit the dialog. Keep aside classes ...