Google Answers Logo
View Question
 
Q: vb.net and the drawing namespace ( No Answer,   1 Comment )
Question  
Subject: vb.net and the drawing namespace
Category: Computers > Programming
Asked by: shmuliknaaman-ga
List Price: $5.00
Posted: 31 Mar 2003 23:56 PST
Expires: 01 May 2003 00:56 PDT
Question ID: 184124
1. i have 8bpp grayscale image.
2. when i load the image and save it becomes 24bpp color.
3. i need to maintain 8bpp grayscale formt.
4. i'm using vb.net
5. and one more thing - the original image have jpg annotation -
FFE0... when i save the picture the annotation desapeer.
Answer  
There is no answer at this time.

Comments  
Subject: Re: vb.net and the drawing namespace
From: theta-ga on 01 Apr 2003 05:47 PST
 
Hi shmuliknaaman-ga,
   It appears that the System.Drawing automatically convert the loaded
image to 32 bit. If you want to maintain a color depth of 8 bits, take
a look at the code provided in the following articles:
    - MS KnowledgeBase Articles
         -[315780] HOWTO: Save a .gif File with a New Color Table By
Using GDI+
          ( http://support.microsoft.com/default.aspx?scid=kb;[LN];315780
)

         -[319591]HOW TO: Save a .gif File with a New Color Table By
Using Visual Basic .NET
           ( http://support.microsoft.com/default.aspx?scid=kb;[LN];319591
)

    - Newsgroup Postings
         - Resize and Maintain important TIFF Properties
           (http://www.dotnet247.com/247reference/msgs/26/133178.aspx)

         - Subject: Resizing without losing the pixel depth....
           Newsgroup: microsoft.public.dotnet.framework.drawing
           ( http://groups.google.com/groups?threadm=uEKAUGzmCHA.2276%40TK2MSFTNGP09)

Although the above postings refer to GIF and TIF file formats, you
should be able to modify the given code to work with your file format.
Hope this helps.
Regards,
Theta-ga
:-)

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy