Bitmaps from .Net to native. p/Invoke.

  • Thread starter Thread starter fhunter
  • Start date Start date
F

fhunter

Hi,
I need some assistance or input.

I was able to take Moe's excellent example posted on
Intel's site:
http://cedar.intel.com/cgi-
bin/ids.dll/content/content.jsp?cntKey=Generic+Editorial%
3a%3agames_gapi&cntType=IDS_EDITORIAL&catCode=BMS&path=1

and creat a native code texture mapper that I can call
from managed code. What a performace difference !!!.
However, the way I did the texture is by loading it
directly from the dll. I need to be able to pass the
texture map (Bitmap) from manage code to the native code.

Does any one have any ideas, links, examples or
information on how I would go about doing this?
Essentialy I am looking for a way to get a pointer to the
Bitmap memory in .Net so I can pass it on to the
unmanaged code as a function parameter.

Thank you
 
Back
Top