Red Gate forums :: View topic - CBitmap
Return to RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
PInvoke.Net forum


Search in PInvoke.Net forum
Post new topic   Reply to topic
Jump to:  
Author Message

Joined: 13 Nov 2009
Posts: 1

PostPosted: Fri Nov 13, 2009 4:42 am    Post subject: CBitmap Reply with quote

I cannot figure out how to marshal a CBitmap to a Bitmap or Image class.

My import looks like this:

[DllImport(@"test.dll", CharSet = CharSet.Unicode)]
public static extern IntPtr GetBitmap(System.IntPtr hwnd, int nBMPWIDTH, int nBMPHEIGHT);

The H file section looks like:

Cbitmap* GetBitmap(HWND hwnd,int nBMPWIDTH,int nBMPHEIGHT);

How do I go about converting the Cbitmap into something I can display in C#?

Many thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group