Home Forums WinForms controls Other WinForms controls A generic error occured in GDI+ in C# Windows Application

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #18448 |

    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

    Imported from legacy forums. Posted by poorni (had 1784 views)

    Xceed Support
    Member
    Post count: 5658

    Which of our component are you using? I do not see any reference to one of our components.

    Imported from legacy forums. Posted by CharlesB (had 2774 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.