Loading bitmap from pegcards.dll

  • Thread starter Thread starter Backslider
  • Start date Start date
B

Backslider

How would I load the bitmaps contained in pegcards.dll in my C# app
targeting the PocketPC?

thanks,
Backslider
 
Have you tried something like this?

Assembly pegcards = Assembly.LoadFrom("...")

Stream streamBitmap =
pegcards.GetManifestResourceStream("foo.bmp");
Bitmap bitmap = new Bitmap (streamBitmap);

-Ben

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: (e-mail address removed) (Backslider)
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Subject: Loading bitmap from pegcards.dll
| Date: 21 Oct 2003 08:52:10 -0700
| Organization: http://groups.google.com
| Lines: 5
| Message-ID: <[email protected]>
| NNTP-Posting-Host: 130.211.51.24
| Content-Type: text/plain; charset=ISO-8859-1
| Content-Transfer-Encoding: 8bit
| X-Trace: posting.google.com 1066751531 11984 127.0.0.1 (21 Oct 2003
15:52:11 GMT)
| X-Complaints-To: (e-mail address removed)
| NNTP-Posting-Date: Tue, 21 Oct 2003 15:52:11 +0000 (UTC)
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
e.de!diablo.theplanet.net!news.maxwell.syr.edu!postnews1.google.com!not-for-
mail
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:36426
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| How would I load the bitmaps contained in pegcards.dll in my C# app
| targeting the PocketPC?
|
| thanks,
| Backslider
|
 
Back
Top