Consulta sobre tamaño de imagen

Consulta sobre tamaño de imagen

Postby MarioG » Thu Feb 27, 2020 12:22 am

Hola Gente!
Existe alguna función, FW o Harbour, que me devuelva el tamaño en ancho y alto de una imagen?

muchas gracias
Resistencia - "Ciudad de las Esculturas"
Chaco - Argentina
User avatar
MarioG
 
Posts: 1380
Joined: Fri Oct 14, 2005 1:28 pm
Location: Resistencia - Chaco - AR

Re: Consulta sobre tamaño de imagen

Postby nageswaragunupudi » Thu Feb 27, 2020 12:48 am

Code: Select all  Expand view
aImg    := FW_ReadImage( nil, cImage )
nWidth  := aImg[ 3 ]
nHeight := aImg[ 4 ]
PalBmpFree( aImg )
 


If you have already read the image into a bitmap handle (hBitmap)
Code: Select all  Expand view

? nBmpWidth(  hBitmap )
? nBmpHeight( hBitmap )
 
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10465
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Consulta sobre tamaño de imagen

Postby MarioG » Thu Feb 27, 2020 11:18 am

Many Thanks Mr. Rao!!
Resistencia - "Ciudad de las Esculturas"
Chaco - Argentina
User avatar
MarioG
 
Posts: 1380
Joined: Fri Oct 14, 2005 1:28 pm
Location: Resistencia - Chaco - AR


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 114 guests