FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour xIMAGE - ADJUST
Posts: 1710
Joined: Tue Oct 28, 2008 06:26 PM
xIMAGE - ADJUST
Posted: Thu Mar 22, 2018 08:59 PM
Estimados

Con la clase XIMAGE no ajusta la imagen en las dimensiones dadas
Code (fw): Select all Collapse
 @20,178 XIMAGE oFoto OF Vent3 SOURCE oEMPL:FOTO PIXEL SIZE 58,58 NOBORDER ADJUST


Gracias por la ayuda
Saludos,



Adhemar C.
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xIMAGE - ADJUST
Posted: Fri Mar 23, 2018 02:54 AM

You can use one of these methods after defining ximage.

oImage:FitRect()
oImage:FitWidth()
oImage:FitHeight()
oImage:Center()
oImage:Zoom( n )

One main difference between TBitmap/TImage and TXImage is that in case of TXImage, the aspect ratio is never disturbed.

Note: From version 18.02, TBitmap can display all types images that TXImage can display without requiring freeimage.dll

Regards



G. N. Rao.

Hyderabad, India
Posts: 1710
Joined: Tue Oct 28, 2008 06:26 PM
Re: xIMAGE - ADJUST
Posted: Fri Mar 23, 2018 12:45 PM

Perfect

I achieved it with TBITMAP

Thank you very much Mr. Rao

Saludos,



Adhemar C.

Continue the discussion