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

GdiAlphaBlend

The GdiAlphaBlend function displays bitmaps that have transparent or semitransparent pixels.

VB4-32,5,6
Declare Function GdiAlphaBlend Lib "gdi32.dll" (ByVal hdc As Long, ByVal lInt As Long, ByVal lInt As Long, ByVal lInt As Long, ByVal lInt As Long, ByVal hdc As Long, ByVal lInt As Long, ByVal lInt As Long, ByVal lInt As Long, ByVal lInt As Long, ByVal BLENDFUNCT As Long) As Long

Operating Systems Supported
Requires Windows 2000 or later; Win9x/ME: Not supported

Library
Gdi32

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.

· nHeightDest
[in] Specifies 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 upper-left corner of the source rectangle.

· nYOriginSrc
[in] Specifies the y-coordinate, in logical units, of the upper-left corner 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.

· blendFunction
[in] Specifies the alpha-blending function for source and destination bitmaps, a global alpha value to be applied to the entire source bitmap, and format information for the source bitmap. The source and destination blend functions are currently limited to AC_SRC_OVER. See the BLENDFUNCTION and EMRALPHABLEND structures.

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. This can return the following value.
ERROR_INVALID_PARAMETER One or more of the input parameters is invalid.

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/