bitmap's handle

  • Thread starter Thread starter Alien
  • Start date Start date
You can get a bitmap handle by loading an image file through this
P/Invoke (works for PPC family).

[DllImport("aygshell.dll", EntryPoint="#75")]
private static extern IntPtr SHLoadImageFile(string imageFilePath);
 
The question is if i have a bitmap like bitmap pic = new bitmap(100,100)
how can i get this bitmap's handle?

cheers~~



Sergey Bogdanov said:
You can get a bitmap handle by loading an image file through this P/Invoke
(works for PPC family).

[DllImport("aygshell.dll", EntryPoint="#75")]
private static extern IntPtr SHLoadImageFile(string imageFilePath);



--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com

how can i get a bitmap's handle from the cf v1.0?
 
For CF1.0 it's impossible to get a Handle of the Bitmap object in
standart ways but you may take a look at Alex Feinman's article, where
he described CF Graphics Internals:
http://www.opennetcf.org/PermaLink.aspx?guid=fd194f13-d816-463e-ac95-a467a6293f0b

--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com

The question is if i have a bitmap like bitmap pic = new bitmap(100,100)
how can i get this bitmap's handle?

cheers~~



You can get a bitmap handle by loading an image file through this P/Invoke
(works for PPC family).

[DllImport("aygshell.dll", EntryPoint="#75")]
private static extern IntPtr SHLoadImageFile(string imageFilePath);



--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com

how can i get a bitmap's handle from the cf v1.0?
 
Back
Top