Gracias QAZWSX2k
he bajado esta utilidad
http://www.irfanview.com/ para ver y convertir imagen
adjunto codigo si alguien le sirve, por el momento hasta que haya algo en la clase tImage
static function Abrir( cFile, oImage )
local cArch, cEjecute
cArch := cGetFile32("JPEG | *.jpg |" , "Seleccione una imagen",1,,,.T. )
if !empty(cArch)
oImage:LoadImage( , cArch )
if oImage:nWidth() > 700 .and. oImage:nHeight() > 900
if file( ViewUsu():cPathTmp + "\File.jpg" )
fErase( ViewUsu():cPathTmp + "\File.jpg" )
endif
cEjecute := "i_view32.exe "+cFile + " /resize=(800,600) /aspectratio /resample /convert="+ViewUsu():cPathTmp + "\File.jpg"
WinExec( cEjecute )
cArchi := ViewUsu():cPathTmp + "\File.jpg"
oImage:LoadImage( , cArchi )
if oImage:nWidth() > 700 .and. oImage:nHeight() > 900
MsgInfo( "Favor reducir las dimensiones de la imagen a 600x800 como máximo...", "Usuario" )
else
cFile := cArch
endif
else
cFile := cArch
endif
oImage:Refresh()
endif
return( .t. )
//----------------------------------------------------------------------------// >
Saludos
Patricio
__________________________________________________________________
Version: Harbour 3.2.0dev (r1307082134),Compiler: Borland C++ 5.8.2 (32-bit)
PCode version: 0.3, FWH 13.2
http://www.sialm.cl