VB How-ToAsk your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
I'm opening a tiff image that has citt group 4 compression, creating a bitmap to manipulate it and then saving the bitmap as a tiff again. The new tiff has LZ compression and I need to get it back to citt. I've since added this code to specify compression
Dim eps As EncoderParameters = New EncoderParameters(1)
eps.Param(0) = New EncoderParameter(System.Drawing.Imaging.Encoder.Qu ality, _
image.Save(FileName, ici, eps)
It doesn't give me an error, but the compression is still LZ... I think I'm missing something fundamental.
Still no go... Saves as a tiff just fine, but it's still changing the compression. I added code to check the compression of the bitmap after it's manipulated and it still shows CITT4, but once saved as tiff it changes to LZ. Does yours not do this?