Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "BitBlt" in gdi32

.

public static extern bool BitBlt(IntPtr hObject, int nXDest, int nYDest, int nWidth,

.

The BitBlt function performs a bit-block transfer of the color data corresponding to a rectangle of pixels from the specified source device context into a destination device context.

.

[DllImport("gdi32.dll", EntryPoint = "BitBlt", SetLastError = true)]

.

static extern bool BitBlt([In] IntPtr hdc, int nXDest, int nYDest, int nWidth, int nHeight, [In] IntPtr hdcSrc, int nXSrc, int nYSrc, TernaryRasterOperations dwRop);

.

Private Shared Function BitBlt(ByVal hdc As IntPtr, ByVal nXDest As Integer, ByVal nYDest As Integer, ByVal nWidth As Integer, ByVal nHeight As Integer, ByVal hdcSrc As IntPtr, ByVal nXSrc As Integer, ByVal nYSrc As Integer, ByVal dwRop As TernaryRasterOperations) As Boolean

.

Use SelectObject to select a source image into the source DC before trying to BitBlt it.

.

BitBlt only does clipping on the destination DC.

.

If a rotation or shear transformation is in effect in the source device context, BitBlt returns an error. If other transformations exist in the source device context (and a matching transformation is not in effect in the destination device context), the rectangle in the destination device context is stretched, compressed, or rotated, as necessary.

.

If the color formats of the source and destination device contexts do not match, the BitBlt function converts the source color format to match the destination format.

.

Not all devices support the BitBlt function. For more information, see the RC_BITBLT raster capability entry in the GetDeviceCaps function as well as the following functions: MaskBlt, PlgBlt, and StretchBlt.

.

BitBlt returns an error if the source and destination device contexts represent different devices. To transfer data between device contexts for different devices, convert the memory bitmap to a DIB by calling GetDIBits. To display the DIB to the second device, call SetDIBits or StretchDIBits.

.

            BitBlt(dc1, 0, 0, c.Width, c.Height, dc2, 0, 0, 13369376);

.

The BitBlt function can be used to quickly render a Bitmap onto a Control (and much, much more). For this purpose, it is much faster than the managed alternative, Graphics.DrawImage(). See the example code below.

.

public static extern bool BitBlt(IntPtr hObject, int nXDest, int nYDest, int nWidth,

.

    BitBlt(pTarget, 0,0, bmp.Width, bmp.Height, pSource,0,0,TernaryRasterOperations.SRCCOPY);

.
Documentation
[BitBlt] on MSDN
.

Please see BitBlt

.

Please see BitBlt

.

        /// Bitblt capabilities

.

    ''' Bitblt capabilities

.

Please see BitBlt


 
Access PInvoke.net directly from VS: