Welcome to the Xceed Community Sign in | Join | Help
Community Search  

A generic error occured in GDI+ in C# Windows Application

Sort Posts: Previous Next
  •  04-30-2008, 5:29 AM Post no. 11855

    A generic error occured in GDI+ in C# Windows Application

    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

  •  04-30-2008, 11:18 AM Post no. 11874 in reply to 11855

    Re: A generic error occured in GDI+ in C# Windows Application

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


    Charles Bérubé-Rémillard
    Technical Support
    Xceed Software Inc.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.