How to Display an image onto a hDC with transparency
Posted on January 5, 2009
1 2 3 4 5 6 7 8 9 10 11 | 'Graphics - How to Display an image onto a hDC with transparency Option Explicit Private Declare Function BitBlt Lib "gdi32" (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) As Long Private Sub cmdBitBlt_Click() BitBlt picFinal.hDC, 0, 0, 136, 109, picMask.hDC, 0, 0, vbSrcPaint BitBlt picFinal.hDC, 0, 0, 136, 109, picOriginal.hDC, 0, 0, vbSrcAnd End Sub |
Related posts:
- How to Display an image on the current form, zooming it by a factor of 4 along the X-axis, and 8 along the Y-axis.
- How to get Dimensions of an image
- How to Capture the Screen
- How to Spin a Picture
- How to display animated Gif in your program
- How to set background picture for form (like the background image of a HTML Document)
- How to stretch image in a Picture Box Control
- How to Execute an ad hoc query using ADO and display the results in a grid
- How to make text on a form scroll upward.
- How to Simulate Alt+PrintScreen to capture an image of a window in the clipboard