Re: Metafile with pixel format
From: Bob Powell [MVP] (bob_at__spamkiller_bobpowell.net)
Date: 10/06/04
- Next message: JZ: "Re: Graphics Path Undo / Redo"
- Previous message: Bob Powell [MVP]: "Re: How to draw a Line with XOR, OR, AND Raster Operation ?"
- In reply to: gana: "Metafile with pixel format"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: JZ: "Re: Graphics Path Undo / Redo"
- Previous message: Bob Powell [MVP]: "Re: How to draw a Line with XOR, OR, AND Raster Operation ?"
- In reply to: gana: "Metafile with pixel format"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|