View Single Post
  #12 (permalink)  
Old 04-30-2008, 01:00 AM
poornima poornima is offline
D-Web Sr.Programmer
 
Join Date: Dec 2007
Posts: 189
poornima is on a distinguished road
Smile Re: Windows Applications

Hi,

i m getting this error while i want to overwrite the existing file.

ImageCodecInfo usedIC = this.GetEncoderInfo("image/bmp");
Encoder encoder = Encoder.Quality;
EncoderParameters encparams = new EncoderParameters(1);
EncoderParameter encparam = new EncoderParameter(encoder, (long)100);
encparams.Param[0] = encparam;
test.Save("C:\\cute1.jpg", usedIC, encparams);//Error


In this coding only i m getting this error. test.Save("C:\\cute1.jpg", usedIC, encparams);
I m already saving the image as bmp in this path.Again taking tat bmp image rotating it and then saving it like this.
plz tell me the best solution
Reply With Quote