Author Topic: bitmap masking  (Read 2446 times)

0 Members and 1 Guest are viewing this topic.

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
bitmap masking
« on: March 17, 2012, 01:53:31 pm »
How do I do custom-sized bitmap masking?
Sig wipe!

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: bitmap masking
« Reply #1 on: March 17, 2012, 02:56:38 pm »
You could first draw a masking bitmap with OR logic (mode 0), and then draw the graphics bitmap with XOR logic (mode 1). Any bit that's set in both bitmaps will show up white, any bit that's set in the first and not in the second will show up black, and any bit that isn't set in either is "transparent."
« Last Edit: March 17, 2012, 02:57:28 pm by Deep Thought »




Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: bitmap masking
« Reply #2 on: March 17, 2012, 03:03:22 pm »
hmm...
can you explain it bit more? :D
Sig wipe!