Click here to Skip to main content
15,793,547 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
when i convert intptr to bitmap it show error

like

A generic error occurred in GDI+.

What I have tried:

<pre>IntPtr hbitmap = IntPtr.Zero;
           m_SecuBSP.CaptureWindowOption.FingerWindow = (IntPtr)pictureBox1.Handle;
       
  
            hbitmap = m_SecuBSP.CaptureWindowOption.FingerWindow;
           Image img = Image.FromHbitmap(hbitmap);
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900