Save an image after rotation in TIFF with ASP
Posted: Mon Sep 29, 2014 3:23 pm
Hi i use thi sub for saving image in tiff
but the saved file is 3.70 Mb, before save was 20k. I think i must set the comression but in the help of gflax i cannot found this. In the code above the line signed give me error :
Errore di run-time di Microsoft VBScript error '800a01c2'
Numero errato di argomenti o assegnazione di proprietà non valida: 'BitmapType'
/visualizzatoreimg/db.asp, riga 26
how can set bitmaptype? I need save the file in Tiff binary mode and compression FAX G4
Code: Select all
SUB rotazione(gradi)
Set ctrl = server.createobject("GflAx.GflAx")
f = session("PercorsoIMG")
'response.write f
'response.end
With ctrl
.enablelzw= True
.LoadBitmap f
.rotate gradi
'.SaveformatName = "tiff"
.SaveFormat = 5
.BitmapType = 1 ' binary <---- error here
.SaveBitmap f
end with
set ctrl=nothing
END SUB
Errore di run-time di Microsoft VBScript error '800a01c2'
Numero errato di argomenti o assegnazione di proprietà non valida: 'BitmapType'
/visualizzatoreimg/db.asp, riga 26
how can set bitmaptype? I need save the file in Tiff binary mode and compression FAX G4