|
-
May 22nd, 2001, 06:57 AM
#1
Thread Starter
PowerPoster
MaskBlt
dopes anyone know how to use the MaskBlt API function?
-
May 22nd, 2001, 07:35 PM
#2
Thread Starter
PowerPoster
I go through the document already and just have some problem in some parameter 
Code:
Public Declare Function MaskBlt Lib "gdi32" Alias "MaskBlt" (ByVal hdcDest As Long, ByVal nXDest As Long, ByVal nYDest As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hdcSrc As Long, ByVal nXSrc As Long, ByVal nYSrc As Long, ByVal hbmMask As Long, ByVal xMask As Long, ByVal yMask As Long, ByVal dwRop As Long) As Long
What should I pass in for the hbmMask, xMask and yMask?
Is the hbmmask is the handle for the Mask bitmap? If yes, how do i create this?
regards,
Chris.C
-
May 22nd, 2001, 08:07 PM
#3
Good Ol' Platypus
You create a B&W representation of the real img, white being not drawn, black being drawn.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
May 23rd, 2001, 12:54 PM
#4
Fanatic Member
hbmMask is probably a bitmap reference.
You could use the Image property of a picturebox control as this parameter.
-
May 24th, 2001, 01:57 AM
#5
Fanatic Member
You could also just use BitBlt to do the same, in both cases you'll need 2 images (or at least 2 sections in an image) anyways...
If you want to know how to do it, just type 'BitBlt' and 'Masks' in the same reply, and you'll get blown away by URL's
Teaudirenopossum.Musasapientumfixaestinaure.
(I can't hear you. There's a banana in my ear)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|