i have downloaded graphicsprocessor2002 and installed it successfully on the system nut when i have this specific code:
Try
Code:
Dim objraster As New RasterObjectClass
objRaster.LoadFile(Server.MapPath("Bluehills.jpg"))
objRaster.EncoderOptions("OutputFileType") = "TIFF"
objRaster.EncoderOptions("ColorDepth") = 1
objRaster.EncoderOptions("DitherType") = "None"
objRaster.EncoderOptions("Threshold") = 128
objRaster.SaveFile(Server.MapPath("none.tif"))
objRaster.EncoderOptions("DitherType") = "OrderedDither"
objRaster.SaveFile(Server.MapPath("dither.tif"))
objRaster.EncoderOptions("DitherType") = "ErrorDiffusion"
objRaster.SaveFile(Server.MapPath("errordiffusion.tif"))
objRaster = Nothing
Catch ex As Exception
End Try
the .net debugger catches an error when loading the file and gives the following message:
Code: Message "Object reference not set to an instance of an object."
Please post soemthing back about this issue.
Thank you.