Results 1 to 5 of 5

Thread: MaskBlt

  1. #1

    Thread Starter
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238

    MaskBlt

    dopes anyone know how to use the MaskBlt API function?

  2. #2

    Thread Starter
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238
    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

  3. #3
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    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)

  4. #4
    Fanatic Member Mad Compie's Avatar
    Join Date
    Aug 2000
    Location
    Kuurne (Belgium)
    Posts
    553
    hbmMask is probably a bitmap reference.

    You could use the Image property of a picturebox control as this parameter.

  5. #5
    Fanatic Member PsychoMark's Avatar
    Join Date
    Feb 2001
    Location
    Netherlands
    Posts
    540
    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
  •  



Click Here to Expand Forum to Full Width