/// <summary> /// Draws the Image at destRect scaling if needed /// </summary> /// <param name="hDc">Graphics Device Context Handler</param> /// <param name="destRect">Absolute destination Rect</param> /// <param name="clipRect">Absolute clip rect</param> /// <returns>HResult</returns> public uint Draw(IntPtr hDc, Rectangle destRect, Rectangle clipRect) { try { var localDestRectRect = destRect.TransformToBounds(); return this.Image.Draw(hDc, ref localDestRectRect, IntPtr.Zero); } catch { return 1; } }