Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hello All,

Sample code which uses SetBitmapBits in c#
Posted
Comments
Smithers-Jones 25-Jul-11 11:58am    
You seem to be either too lazy or incapable of phrasing a full sentence.

Sample money to use in shops.

Trade?
 
Share this answer
 
Due to the dramatically different memory models in .NET and unmanaged raw Windows API, I would not recommend you doing it, as you would need to work with Windows bitmaps from the very beginning and may have a lot of problems.

You could use the class System.Drawing.Bitmap with System.Drawing.Bitmap.LockBits to do the same thing.

Find the code sample here: http://msdn.microsoft.com/en-us/library/5ey6h79d.aspx[^].

Alternatively, you could use WPF and System.Windows.Media.Imaging.WriteableBitmap.

You will find a code sample here: http://msdn.microsoft.com/en-us/library/system.windows.media.imaging.writeablebitmap.aspx[^].

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900