TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
mitchellguzman
NA
7
0
Getting an error while useing EncoderValue.CompressionCCITT3
Feb 28 2005 2:47 PM
The error message is "Invalid parameter used." but when I change the value to CompressionLZW it works. Am I missing something? private bool SaveTIFF(ref string outputFile, ref Bitmap bmp, bool bAdd) { try { System.Drawing.Imaging.Encoder eng = System.Drawing.Imaging.Encoder.SaveFlag; System.Drawing.Imaging.Encoder eng1 = System.Drawing.Imaging.Encoder.Compression; EncoderParameters ep=new EncoderParameters(2); ep.Param[0]=new EncoderParameter(eng,(long)EncoderValue.MultiFrame); ep.Param[1] = new EncoderParameter(eng1,(long)EncoderValue.CompressionCCITT3); ImageCodecInfo info=GetEncoderInfo("image/tiff"); if (!bAdd) { bmp.Save(outputFile,info,ep); } else { bmp.SaveAdd(ep); } bmp.Dispose(); return true; } catch(Exception e) { ErrorLg er = new ErrorLg(); er.LogErrorToDisk(e.Message.ToString(),"ParseFundValue" + ":Main()",_path); e = null; er = null; return false; }
Reply
Answers (
0
)
Convert JPG to PNG or other method of transparency
severe flicker when creating moving image on a panel