Advertisement

07.18.2008 at 08:02AM PDT, ID: 23577063
[x]
Attachment Details

.net Graphics type with .gif

Asked by jackjohnson44 in Microsoft Visual C#.Net

I have a function that will take an image and put a watermark (a company name and a date on it) when you download it from our website.  It works well except for .gif.  I am not sure what to do.

Graphics oGraphics = Graphics.FromImage(nImage);
gives this error:
"A Graphics object cannot be created from an image that has an indexed pixel format."

Any ideas?  I really don't want to redo the whole function.  I don't think I will know how.

Start Free Trial
[+][-]07.18.2008 at 08:25AM PDT, ID: 22036802

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.18.2008 at 08:30AM PDT, ID: 22036875

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 09:15AM PDT, ID: 22037377

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 09:30AM PDT, ID: 22037515

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 09:52AM PDT, ID: 22037721

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Visual C#.Net
Sign Up Now!
Solution Provided By: jackjohnson44
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628