xIMAGE - ADJUST

xIMAGE - ADJUST

Postby acuellar » Thu Mar 22, 2018 8:59 pm

Estimados

Con la clase XIMAGE no ajusta la imagen en las dimensiones dadas
Code: Select all  Expand view

 @20,178 XIMAGE oFoto OF Vent3 SOURCE oEMPL:FOTO PIXEL SIZE 58,58 NOBORDER ADJUST
 


Gracias por la ayuda
Saludos,

Adhemar C.
User avatar
acuellar
 
Posts: 1593
Joined: Tue Oct 28, 2008 6:26 pm
Location: Santa Cruz-Bolivia

Re: xIMAGE - ADJUST

Postby nageswaragunupudi » Fri Mar 23, 2018 2: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
User avatar
nageswaragunupudi
 
Posts: 10247
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: xIMAGE - ADJUST

Postby acuellar » Fri Mar 23, 2018 12:45 pm

Perfect

I achieved it with TBITMAP

Thank you very much Mr. Rao
Saludos,

Adhemar C.
User avatar
acuellar
 
Posts: 1593
Joined: Tue Oct 28, 2008 6:26 pm
Location: Santa Cruz-Bolivia


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 16 guests

cron