public static int LoadImageFromCLRImage(ref int Image, System.Drawing.Image ImageObject)
{
System.Drawing.Bitmap bmp = new System.Drawing.Bitmap(ImageObject);
IntPtr hbm = bmp.GetHbitmap();
int res = LoadImageFromHBitmap(ref Image, hbm);
DeleteObject(hbm);
bmp.Dispose();
return res;
}