/// <summary>
///
/// </summary>
/// <param name="hdc"></param>
public override void Blit(IntPtr hdc)
{
if (this.DeviceContextHandle != IntPtr.Zero)
{
// Set the read buffer.
OpenGL.ReadBuffer(OpenGL.GL_COLOR_ATTACHMENT0);
// Read the pixels into the DIB section.
OpenGL.ReadPixels(0, 0, this.Width, this.Height, OpenGL.GL_BGRA,
OpenGL.GL_UNSIGNED_BYTE, this.dibSection.Bits);
// Blit the DC (containing the DIB section) to the target DC.
Win32.BitBlt(hdc, 0, 0, this.Width, this.Height,
this.dibSection.MemoryDeviceContext, 0, 0, Win32.SRCCOPY);
}
}