Example #1
0
 public void PaintToDevice(IntPtr destDC, int x, int y, int width, int height, int srcX, int srcY, int scan, int mumScans, int wUsage)
 {
     try
     {
         IntPtr ptrBits = FreeImageApi.GetBits(m_Handle);
         IntPtr ptrInfo = FreeImageApi.GetInfo(m_Handle);
         SetDIBitsToDevice(destDC, x, y, width, height, srcX, srcY, scan, mumScans, ptrBits, ptrInfo, wUsage);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }