PC Review


Reply
Thread Tools Rate Thread

Bitmap masking the .NET way

 
 
=?Utf-8?B?QnJpYW4gS2VhdGluZyBFSTlGWEI=?=
Guest
Posts: n/a
 
      7th Feb 2005
Hello there,
Does anyone know how to to Bitmap masking in .NET,
In c++ i used,
CreateCompatibleDC
GetBitmap

Then on the bitmap and the bitmap mask i called.
{SelectBitmap
StretchBlt}

No I gather i can do this
Bitmap offScreenBmp;
Graphics offScreenDC;
offScreenBmp = new Bitmap(this.Width, this.Height);
offScreenDC = Graphics.FromImage(offScreenBmp);

but how do i load the second bitmap mask somehow to make a transparent bitmap?

thanks in advance
Brian Keating

 
Reply With Quote
 
 
 
 
=?Utf-8?B?QnJpYW4gS2VhdGluZyBFSTlGWEI=?=
Guest
Posts: n/a
 
      7th Feb 2005
Hello again,
think i've this one sussed.
Bitmap class has a MakeTransparent method this is what i want I should think
thanks for having a look however

regds
Brian Keating

"Brian Keating EI9FXB" wrote:

> Hello there,
> Does anyone know how to to Bitmap masking in .NET,
> In c++ i used,
> CreateCompatibleDC
> GetBitmap
>
> Then on the bitmap and the bitmap mask i called.
> {SelectBitmap
> StretchBlt}
>
> No I gather i can do this
> Bitmap offScreenBmp;
> Graphics offScreenDC;
> offScreenBmp = new Bitmap(this.Width, this.Height);
> offScreenDC = Graphics.FromImage(offScreenBmp);
>
> but how do i load the second bitmap mask somehow to make a transparent bitmap?
>
> thanks in advance
> Brian Keating
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
'System.Drawing.Bitmap.Bitmap()' Error Fir5tSight Microsoft Dot NET 7 23rd Jun 2006 11:44 AM
copy a portion of a bitmap to another bitmap (via picturebox or other method) ? Mad Scientist Jr Microsoft VB .NET 2 31st Jan 2005 02:26 PM
Extract portion of a bitmap to display, not entire bitmap. Alex Gray Microsoft C# .NET 2 22nd Feb 2004 01:42 PM
Question on how to access bitmap: Public Function getBitmap() As Bitmap Michael Murphy Microsoft VB .NET 2 7th Oct 2003 01:54 PM
extract OLE bitmap from table and save as a bitmap file Brett Rawcliffe Microsoft Access 1 19th Jul 2003 03:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:15 AM.