Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. problem [modified]

problem [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
regexarchitecturehelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Force Code
    wrote on last edited by
    #1

    hdcX holds an image consisting of two colors (say black and white). You can BitBlt to hdcX as a destination. However, you cannot BitBlt *from* hdcX as a source. You cannot select a pattern (hbitmap) brush into hdcX either (although you can select a solid brush). Also, hdcX does not support floodfill. You want to BitBlt hdcA to only the white areas of hdcX, and hdcB to only the black areas of hdcX. How do you do it. -- modified at 16:29 Monday 11th June, 2007

    M 1 Reply Last reply
    0
    • F Force Code

      hdcX holds an image consisting of two colors (say black and white). You can BitBlt to hdcX as a destination. However, you cannot BitBlt *from* hdcX as a source. You cannot select a pattern (hbitmap) brush into hdcX either (although you can select a solid brush). Also, hdcX does not support floodfill. You want to BitBlt hdcA to only the white areas of hdcX, and hdcB to only the black areas of hdcX. How do you do it. -- modified at 16:29 Monday 11th June, 2007

      M Offline
      M Offline
      Matthew Faithfull
      wrote on last edited by
      #2

      I don't think you can do it directly. You'll probably need at least one extra bitmap and the use of MaskBlt. Have fun ;)

      Nothing is exactly what it seems but everything with seems can be unpicked.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups