How to write and read a Meta file from the a stream.
From: Amendra TheUltimate via .NET 247 (anonymous_at_dotnet247.com)
Date: 10/31/04
- Next message: Steve Butabi via .NET 247: "How Can I Change Datagrid and ListView Row/Column BgColor (in PPC2003)"
- Previous message: Mohit Vora via .NET 247: "Checkbox in Checkedlistbox just vanishes"
- Next in thread: Justin Rogers: "Re: How to write and read a Meta file from the a stream."
- Reply: Justin Rogers: "Re: How to write and read a Meta file from the a stream."
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 31 Oct 2004 03:52:35 -0800
Hi,
I have been trying to write to a memory stream and read and display a meta file. I was ok with drawing on to the metafile. But what I cannot seem to do is read from the memory stream that I have written to. I get an exception saying, Additional information: A generic error occurred in GDI+.
I tried with a Filestream, here to I had to save the file and reopen it. Then it worked. I need to write the meta file contents to a memory stream and on the fly read from the stream. I would be glad if some one can help me with this :).
A small sample may do.
Also if any one knows how to change the resolution of a new metafile that we are to create, please let me know. It seems to be taking in the resolution of the reference device context.
Thanks
--------------------------------
From: Amendra TheUltimate
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>iMWAlBbW5UyoiF7JSwb7UA==</Id>
- Next message: Steve Butabi via .NET 247: "How Can I Change Datagrid and ListView Row/Column BgColor (in PPC2003)"
- Previous message: Mohit Vora via .NET 247: "Checkbox in Checkedlistbox just vanishes"
- Next in thread: Justin Rogers: "Re: How to write and read a Meta file from the a stream."
- Reply: Justin Rogers: "Re: How to write and read a Meta file from the a stream."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|