🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.language.csharp
Article #335

Re: System.Drawing.Image System.Drawing.Bitmap

#335
From: Jon Shemitz
Date: Wed, 17 Aug 2005 18:31
20 lines
1463 bytes
Greg wrote:

> I would like to put a Image in a Bitmap but cant find how to do ?
> 
> For this :
> 
> using System.Drawing;
> Bitmap bmp;
> Image img;
> img = ToolboxBitmapAttribute.GetImageFromResource(this.GetType(),
> "Bullet.bmp", false);
> bmp = img;//?? Howto do this ??

using (Graphics BitmapGraphics = Graphics.FromImage(bmp)
  BitmapGraphics.DrawImage(0, 0, img);
  // from memory - param order may be wrong

-- 

www.midnightbeach.com
Technical Details
Message-ID: <43038282.CC07E1B9@midnightbeach.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!solnet.ch!solnet.ch!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <4302f9d1$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,5968fb20cd0e7bb9
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII-7-bit
Message-ID: <43038282.CC07E1B9@midnightbeach.com>
Date: Wed, 17 Aug 2005 11:31:30 -0700
From: Jon Shemitz <jon@midnightbeach.com>
Reply-To: jon@midnightbeach.com
Organization: Midnight Beach
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
X-Accept-Language: en-US,en
MIME-Version: 1.0
Newsgroups: borland.public.csharpbuilder.language.csharp
Subject: Re: System.Drawing.Image System.Drawing.Bitmap
References: <4302f9d1$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 63.249.104.197
X-Trace: newsgroups.borland.com 1124303479 63.249.104.197 (17 Aug 2005 11:31:19 -0700)
Lines: 20
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!solnet.ch!solnet.ch!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail