Results 1 to 6 of 6

Thread: yet another newbie BitBlt question

  1. #1

    Thread Starter
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    Talking yet another newbie BitBlt question

    This might have been asked 10000 times before.
    I have a picture (as attached), with white around it. How on earth (very simple example if poss ) can I get the white around this character to be the same as the background colour / pic of the form please ?!?!?!?!?!?

    Thanks,
    Totally stumped / Alex

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Look here: http://vbden.tripod.com/articles/invmask.htm

    You must have a mask (black character, white BG). Then, blit the MASK on with MERGEPAINT and the SPRITE (what you DIDNT attach ) on with AND.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  3. #3

    Thread Starter
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    ah, ahem, that was meant to be this one ...
    Thanks, that looks a great site !

    Also, I've just noticed you wrote it - you done any others like this by any chance ?
    Attached Files Attached Files

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  4. #4
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    No, not many. I was thinking of doing a few theory ones, examples and cool effects you can get with minimal code. I'm rewriting my BitBlt one, and then I'm going to continue it. You'll be able to find it (eventually) at http://sastraxi.crystal-rain.com/
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  5. #5
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Okay. Here's a program I made to help illustrate the use of MergePaint and SrcAnd. I've found out why it never works - vbMergePaint seems to be different than MERGEPAINT from the API. You should try the one from the API sometime though, it's a multiply blit!
    Attached Files Attached Files
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  6. #6

    Thread Starter
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    Fantastic thanks The tutorial site you gave me was fine - on my way to being a top games programmer as I write this Yeah, I really think you should do some more as that was excellent - thanks for all your help Sastraxi !!!

    I just wanna add that that sample is the dogs @:%$"{*! - very simple and a great help for me
    Last edited by alex_read; Dec 7th, 2001 at 03:47 AM.

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

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