public BufferedPaintHandle(IntPtr hwnd, IntPtr hdcTarget, ref Rectangle rcTarget, ref BufferedPaintAnimationParams pAnimationParams, out IntPtr phdcFrom, out IntPtr phdcTo) : base(IntPtr.Zero, true) { RECT rc = rcTarget; base.SetHandle(NativeMethods.BeginBufferedAnimation(hwnd, hdcTarget, ref rc, NativeMethods.BufferedPaintBufferFormat.CompatibleBitmap, IntPtr.Zero, ref pAnimationParams, out phdcFrom, out phdcTo)); }