Bitblt function (API) Xiang solution

zhaozj2021-02-16  69

Bitblt acts transmits the data of a memory block to another. The front memory block is called "source", and the latter memory block is referred to as "target" image program developer uses Blit function in memory. A page map is transferred to another page to another page Description: Declare Function Bitblt Lib "GDI32" Alias ​​"Bitblt" (BYVAL HDESTDC As Long, Byval X As Long, Byval Y As Long, BYVAL NWIDTH As Long, Byval NHEIGHT As Long, Byval Hsrcdc As Long, BYVAL XSRC AS Long, BYVAL YSRC As Long, BYVAL DWROP AS Long, // Target Environment Handle X as long, // Target Environment The X coordinate y as long, / / ​​target the rectangular area of ​​the target environment of the target environment NWIDTH AS long, // Target device environment The width value of the rectangular area of ​​the target environment NHEIGHT As long, // Target device environment The height value of the rectangular area hsrcdc asse line, / / ​​source device environment of the handle XSRC As long, // Source device environment of the rectangular area of ​​the left upper left corner of the upper left corner of YSRC As long, // Source device environment The upper left corner of the rectangular area of ​​the source The Y coordinate DWROP As long, / / ​​The raster operator DWROP parameter is a raster operation code (ROP), which means that the source bitmap is made by the target bitmap and the color value of the pattern brush, which is commonly used. The raster operation code and the meaning Blackness use black fill target rectangular zone. DSTINVER inverted the target rectangle image. MergeCopy performs the source rectangle image with the specified pattern brush (Pattern). MergePaint will pass the source rectangular graphic After the reverse phase, the Boolean "or" operation with the target rectangle image. NOTSRCCopy After the source rectangle image is reversed, copy it to the target rectangle. NOTSRCERASE first puts the source rectangle image with the target rectangle image to Boolean "or" Operate, then reverse the image of the image. Patcopy copies the specified pattern brush to the target rectangle. Patinvert uses the specified pattern brush to the target rectangular image. PottPaint first rectangular image Performing inverting, using the specified pattern brush to perform Boolean "or" operation, then carry out the target rectangular image Boolean "or" operation Srcand will "the source rectangle image with the target rectangle image. Srccopy copies the source rectangular image directly on the target rectangle. Srcerase reverse the target rectangle image, and then rectangular The image performs Boolean "with". Srcinvert uses the source rectangle image with the target rectangle image. SrcPaint will "the source rectangle image with the target rectangle image" or "operation. Whiteness is filled with white Target rectangular area.

转载请注明原文地址:https://www.9cbs.com/read-16990.html

New Post(0)