AllAPI Network - The KPD-Team

 
Allapi Network
 API-Guide
 ApiViewer

 API List

 
API Resources
 Tips & Tricks
 VB Tutorials
 Error Lookup
 
Misc Stuff
 VB examples
 VB Tools
 VB Links
 Top Downloads
 
This Site
 Search Engine
 Contact Form
 

Donate to AllAPI.net

TransparentBlt

The TransparentBlt 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.

VB4-32,5,6
Declare Function TransparentBlt Lib "msimg32.dll" (ByVal hdc 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 nSrcWidth As Long, ByVal nSrcHeight As Long, ByVal crTransparent As Long) As Boolean

Operating Systems Supported
Requires Windows 2000 or later; Requires Windows 98 or later

Library
Msimg32

Parameter Information
· hdcDest
[in] Handle to the destination device context.

· nXOriginDest
[in] Specifies the x-coordinate, in logical units, of the upper-left corner of the destination rectangle.

· nYOriginDest
[in] Specifies the y-coordinate, in logical units, of the upper-left corner of the destination rectangle.

· nWidthDest
[in] Specifies the width, in logical units, of the destination rectangle.

· hHeightDest
[in] Handle to the height, in logical units, of the destination rectangle.

· hdcSrc
[in] Handle to the source device context.

· nXOriginSrc
[in] Specifies the x-coordinate, in logical units, of the source rectangle.

· nYOriginSrc
[in] Specifies the y-coordinate, in logical units, of the source rectangle.

· nWidthSrc
[in] Specifies the width, in logical units, of the source rectangle.

· nHeightSrc
[in] Specifies the height, in logical units, of the source rectangle.

· crTransparent
[in] The RGB color in the source bitmap to treat as transparent.

Return Values
If the function succeeds, the return value is TRUE.

If the function fails, the return value is FALSE.

Windows NT/ 2000: To get extended error information, call GetLastError.

Examples

Related Functions

 

 


Copyright © 1998-2007, The Mentalis.org Team - Privacy statement
Did you find a bug on this page? Tell us!
This site is located at http://allapi.mentalis.org/