Search found 38 matches: nzoom

Return to advanced search

Re: HEIC to JPG

Can't use some Fivewin function?

FW_TransformBitmap( hBitmap, [aCrop], [nZoom], [nRotate] )
by cnavarro
Wed Jul 01, 2020 9:42 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: HEIC to JPG
Replies: 20
Views: 3843

Re: Xbrowse or Ximage Load picture position not work

cnavarro wrote:Try with FW_TransformBitmap( hBitmap, [aCrop], [nZoom], [nRotate] )


This function mean save as BMP file?
If yes, I just want to read original file not save as file.
by richard-service
Sat Jun 20, 2020 11:08 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Xbrowse or Ximage Load picture position not work
Replies: 10
Views: 1434

Re: Xbrowse or Ximage Load picture position not work

Try with FW_TransformBitmap( hBitmap, [aCrop], [nZoom], [nRotate] )
by cnavarro
Sat Jun 20, 2020 10:36 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Xbrowse or Ximage Load picture position not work
Replies: 10
Views: 1434

Re: FWH 18.03: FW_SaveImage()

... 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 ...
by nageswaragunupudi
Tue Apr 24, 2018 2:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH 18.03: FW_SaveImage()
Replies: 2
Views: 937

Re: FWH 18.03: FW_SaveImage()

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 ...
by AntoninoP
Tue Apr 24, 2018 2:09 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH 18.03: FW_SaveImage()
Replies: 2
Views: 937

FWH 18.03: FW_SaveImage()

... viewed in the image control. oImage:Save( cFile, .f. ): Saves original image without any transformations. FW_TransformBitmap( hBitmap, [aCrop], [nZoom], [nRotate] ) --> modified bitmap Parameters are self explanatory. Example usage: hBmp := FW_ReadImage( nil, "\fwh\bitmaps\olga1.jpg" ...
by nageswaragunupudi
Tue Apr 24, 2018 1:26 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH 18.03: FW_SaveImage()
Replies: 2
Views: 937

New FTDN March/Marzo 2018 (FWH 18.03)

... 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: - @ ...
by Antonio Linares
Tue Apr 24, 2018 9:25 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN March/Marzo 2018 (FWH 18.03)
Replies: 0
Views: 1674

Re: ximage rotate and save

if oImage:nZoom == 1 .and. oImage:nRotate == 0
// not modified
else
oImage:SaveToBmp( cBmpFile ) // save rotated / zoomed image to bmp file
endif
by nageswaragunupudi
Mon Jan 15, 2018 2:06 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ximage rotate and save
Replies: 13
Views: 1834

Re: XIMage Compatibility with Image

... 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
by Silvio.Falconi
Sun Jan 07, 2018 8:50 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XIMage Compatibility with Image
Replies: 13
Views: 1978

XIMage Compatibility with Image

... aItemsZoom:={"25%","50%","75%","100%","150%","200%"} @ 230,295 COMBOBOX oCbxZoom VAR nZoom ITEMS aItemsZoom SIZE 60, 10 of oAllegati ; on change (oImagePreview:nZoom(val(aItemsZoom[nZoom])/100) ,; oImagePreview:refresh() ,; Rinfresca_oDlgallegati()
by Silvio.Falconi
Sat Jan 06, 2018 9:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XIMage Compatibility with Image
Replies: 13
Views: 1978

Re: A problem with GETCURSORPOS() and widescreen-monitor ?

... 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 ...
by ukoenig
Sat Nov 18, 2017 7:16 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A problem with GETCURSORPOS() and widescreen-monitor ?
Replies: 24
Views: 4867

Re: A problem with GETCURSORPOS() and widescreen-monitor ?

... > 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 := ...
by ukoenig
Mon Nov 13, 2017 12:12 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A problem with GETCURSORPOS() and widescreen-monitor ?
Replies: 24
Views: 4867

Re: crop an Image

... , 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
by Silvio.Falconi
Tue Oct 31, 2017 5:04 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: crop an Image
Replies: 28
Views: 4210

Re: TImage zoom

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 ...
by nageswaragunupudi
Thu Apr 07, 2016 2:52 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TImage zoom
Replies: 14
Views: 2582

Re: TImage zoom

oImg:nZoom++/oImg:nZoom++, oImg:refresh() - for TImage not work

Use a brush good idea, but I was not able to interactively change its size.

Probably for zoom/unzoom you can use SaveWindow. Save need rectangl context in BMP, and then load in TImage
by Natter
Thu Apr 07, 2016 9:10 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: TImage zoom
Replies: 14
Views: 2582
Next

Return to advanced search