BitBlt() приватный Метод

private BitBlt ( IntPtr hDC, int x, int y, int width, int height, IntPtr hDCSource, int sourceX, int sourceY, uint type ) : bool
hDC IntPtr
x int
y int
width int
height int
hDCSource IntPtr
sourceX int
sourceY int
type uint
Результат bool
Пример #1
0
        /// <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);
            }
        }