N
Nuno Esculcas
Hello,
I come from C++ and i now have to work with C#, and someone tell me that
bye bye pointers but i think this is not true, i must convert a DIB image in
something that i can use in C# (like Image or Bitmap) and the only thing i
can do is a DIB into a IntPtr (a pointer). I do this with the platform
invoke method of Win32:
[DllImport("gdiplus.dll", ExactSpelling=true)]
internal static extern int GdipCreateBitmapFromGdiDib( IntPtr bminfo,
IntPtr pixdat, ref IntPtr image );
Now my little impression of what i do of it it's that the IntPtr is a
pointer to a Image!?!? right??!
If is, then how i do the cast (like in old good C++):
Image* pImg = (Image*) IntPtr_variable;
Thanks
Nuno
I come from C++ and i now have to work with C#, and someone tell me that
bye bye pointers but i think this is not true, i must convert a DIB image in
something that i can use in C# (like Image or Bitmap) and the only thing i
can do is a DIB into a IntPtr (a pointer). I do this with the platform
invoke method of Win32:
[DllImport("gdiplus.dll", ExactSpelling=true)]
internal static extern int GdipCreateBitmapFromGdiDib( IntPtr bminfo,
IntPtr pixdat, ref IntPtr image );
Now my little impression of what i do of it it's that the IntPtr is a
pointer to a Image!?!? right??!
If is, then how i do the cast (like in old good C++):
Image* pImg = (Image*) IntPtr_variable;
Thanks
Nuno