Re: Metafile with pixel format

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Bob Powell [MVP] (bob_at__spamkiller_bobpowell.net)
Date: 10/06/04


Date: Wed, 6 Oct 2004 15:26:04 +0200

Create a bitmap with the desired bit depth, get a graphics for it, draw the
metafile to it, save the 24bpp image to a bmp, jpg or whatever file.

-- 
Bob Powell [MVP]
Visual C#, System.Drawing
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm
The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
Bob's Blog: http://bobpowelldotnet.blogspot.com/atom.xml
"gana" <gana@discussions.microsoft.com> wrote in message
news:6042C440-190A-45CD-A17C-4AAABAF2C92B@microsoft.com...
> Hello,
>    I'm creating a metafile and creating a graphics from this metafile.
After
> this I'm drawing manythings on this graphics object. Finally I'm saving
this
> as BMP or JPeg format. Problem is the crated metafile is showing
PixelFormat
> as Format32bppRgb. I want to save this metafile to bmp with pixel format
> Format24bppRgb. So output is completely different from what I
expect.(Mainly
> the dimensions). Can you please help me to change the default pixelformat
of
> metafile to Format24bppRgb.
> Thnaks.
> -- 
> Gana


Relevant Pages

  • Re: Saving images from web pages
    ... Internet Explorer Does Not Save Graphics Files in the Proper Format ... Why IE will only let you save as BMP: ... incorrect extension then this isn't the solution. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Dell image expert
    ... Dell image expert can save files in a variety of graphics ... and choose a format such as JPEG or GIF or BMP. ... I recently got a word doc with a Dell image expert file embedded. ...
    (microsoft.public.word.conversions)
  • Re: Word 2007: Copying Equations
    ... If you're using the new Equation Editor, you may have 'clearer' appearing graphics of your equations by copying them then using ... Edit=>Paste Special and selecting Picture(Enhanced Metafile). ... The Enhanced Meta File format is a combination vector/bitmap capable one. ... The equation graphics may extend margin to margin so ...
    (microsoft.public.word.docmanagement)
  • Metafile with pixel format
    ... I'm creating a metafile and creating a graphics from this metafile. ... this I'm drawing manythings on this graphics object. ... I want to save this metafile to bmp with pixel format ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: RTF und Image
    ... Dim _graphics as Graphics = xxx ... > Dim _metaFile As Metafile = Nothing ... > // Used to store the enhanced metafile ...
    (microsoft.public.de.german.entwickler.dotnet.vb)