home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 3_2004-2005.ISO / Data / Zips / AllAPI_API179141992004.psc / API / A / AlphaBlend.api < prev    next >
Encoding:
INI File  |  2004-08-30  |  2.2 KB  |  56 lines

  1. [NAME]
  2. AlphaBlend
  3. [DESCRIPTION]
  4. The AlphaBlend function displays bitmaps that have transparent or semitransparent pixels.
  5. [DECLARATION]
  6. Declare Function AlphaBlend Lib "msimg32.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
  7. [VBNET]
  8. N/A
  9. [OS]
  10. Requires Windows 2000 or later; Requires Windows 98 or later
  11. [LIBRARY]
  12. Msimg32
  13. [PARAMETERS]
  14. ╖ hdcDest
  15. [in] Handle to the destination device context.
  16.  
  17. ╖ nXOriginDest
  18. [in] Specifies the x-coordinate, in logical units, of the upper-left corner of the destination rectangle.
  19.  
  20. ╖ nYOriginDest
  21. [in] Specifies the y-coordinate, in logical units, of the upper-left corner of the destination rectangle.
  22.  
  23. ╖ nWidthDest
  24. [in] Specifies the width, in logical units, of the destination rectangle.
  25.  
  26. ╖ nHeightDest
  27. [in] Specifies the height, in logical units, of the destination rectangle.
  28.  
  29. ╖ hdcSrc
  30. [in] Handle to the source device context.
  31.  
  32. ╖ nXOriginSrc
  33. [in] Specifies the x-coordinate, in logical units, of the upper-left corner of the source rectangle.
  34.  
  35. ╖ nYOriginSrc
  36. [in] Specifies the y-coordinate, in logical units, of the upper-left corner of the source rectangle.
  37.  
  38. ╖ nWidthSrc
  39. [in] Specifies the width, in logical units, of the source rectangle.
  40.  
  41. ╖ nHeightSrc
  42. [in] Specifies the height, in logical units, of the source rectangle.
  43.  
  44. ╖ blendFunction
  45. [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.
  46. [RETURNS]
  47. If the function succeeds, the return value is TRUE.
  48. If the function fails, the return value is FALSE. 
  49.  
  50. Windows NT/ 2000: To get extended error information, call GetLastError. This can return the following value.
  51. ERROR_INVALID_PARAMETER One or more of the input parameters is invalid. 
  52. [EXAMPLES]
  53. AlphaBlend*AACD89DF7585EB749BFD3B129758148F.html
  54. [RELATED]
  55. TransparentBlt
  56.