Article View: borland.public.csharpbuilder.language.csharp
Article #336Re: System.Drawing.Image System.Drawing.Bitmap
From: Greg
Date: Thu, 18 Aug 2005 07:53
Date: Thu, 18 Aug 2005 07:53
29 lines
1794 bytes
1794 bytes
Thank's this seems to work :
Graphics BitmapGraphics = Graphics.FromImage(bmp);
BitmapGraphics.DrawImage(img, 0, 0);
Greg
"Jon Shemitz" <jon@midnightbeach.com> a οΏ½crit dans le message de news:
43038282.CC07E1B9@midnightbeach.com...
> 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:
<43043e78$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4302f9d1$1@newsgroups.borland.com> <43038282.CC07E1B9@midnightbeach.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,5968fb20cd0e7bb9 X-Google-Attributes: gid1efe35,public X-Google-Language: ENGLISH,ASCII Reply-To: "Greg" <contact@mp-concept.fr> From: "Greg" <contact@mp-concept.fr> Newsgroups: borland.public.csharpbuilder.language.csharp References: <4302f9d1$1@newsgroups.borland.com> <43038282.CC07E1B9@midnightbeach.com> Subject: Re: System.Drawing.Image System.Drawing.Bitmap Date: Thu, 18 Aug 2005 09:53:31 +0200 Lines: 31 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original X-Antivirus: avast! (VPS 0533-3, 17/08/2005), Outbound message X-Antivirus-Status: Clean NNTP-Posting-Host: 81.56.132.17 Message-ID: <43043e78$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1124351608 81.56.132.17 (18 Aug 2005 00:53:28 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail