PC Review


Reply
Thread Tools Rate Thread

Bitmaps from .Net to native. p/Invoke.

 
 
fhunter
Guest
Posts: n/a
 
      15th Sep 2003
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

 
Reply With Quote
 
 
 
 
Chris Forsberg [MVP]
Guest
Posts: n/a
 
      16th Sep 2003
Take a look at the GapiDraw.NET beta at
http://www.intuitex.com/gapidraw.html, and recent info (with comment by the
author) can be found in a recent newsthread at
http://www.pocketpcdn.com/forum/viewtopic.php?t=1032.

--
Chris Forsberg
Microsoft MVP - Mobile Devices
www.businessanyplace.net

"fhunter" <(E-Mail Removed)> wrote in message
news:050801c37bce$016ac600$(E-Mail Removed)...
> 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
>



 
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
Can P/Invoke call a native method of a native class? blackbiscuit Microsoft C# .NET 9 4th Jun 2009 11:31 AM
Can P/Invoke call a native method of a native class? blackbiscuit Microsoft C# .NET 0 11th May 2009 02:04 PM
Where do native dlls used in p/invoke get loaded? Patrick Berny Microsoft Dot NET Compact Framework 2 15th Feb 2005 09:27 PM
ArgumentException in MethodInfo Invoke with non-native arguments Ffelagund Microsoft VC .NET 0 2nd Mar 2004 11:02 AM
Native exception in P/Invoke code Simon Wood Microsoft Dot NET Compact Framework 0 2nd Sep 2003 09:27 AM


Features
 

Advertising
 

Newsgroups
 


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