@ 230,312 BTNBMP obtnPreview[3] BITMAP "AROTATE" NOBORDER ;
SIZE 18,24 of oAllegati;
ACTION oImagePreview:Rotate()
and the I save it but this function
- Code: Select all Expand view
- Function SalvaImage(oImg)
Local nType
local oBmp := GdiBmp():New()
local cFile := cGetFile( "Bitmap (*.bmp)| *.bmp|" + ;
"JPEG (*.jpg)| *.jpg|" + ;
"GIF (*.gif)| *.gif|" + ;
"TIFF (*.tif)| *.tif|" + ;
"PNG (*.png)| *.png" ;
,"Salva con il nome", hb_CurDrive() , .t. )
* oBmp:hBmp := GDIP_FROMHBITMAP( oImg:GetHBitmap(), oImg:aPalBmp[ 1 ], .T. )
oBmp:hBmp := oImg:aPalBmp[ 1 ]
IF .NOT. EMPTY( cFile )
nType := NGETFILEFILTER()
DO CASE
CASE nType == 1
cExt := "bmp"
CASE nType == 2
cExt := "jpg"
CASE nType == 3
cExt := "gif"
CASE nType == 4
cExt := "tif"
CASE nType == 5
cExt := "png"
ENDCASE
cFile := cFilePath( cFile ) + cFileNoExt( cFile ) + "." + cExt
oBmp:Save(cfile)
MsgInfo( "saved as: "+ cFile)
oBmp:End()
Endif
Return nil
save the image as was before ( on Original)
How I can save the image rotated ?