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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. drawing in different layers in VC++

drawing in different layers in VC++

Scheduled Pinned Locked Moved C / C++ / MFC
c++graphicsquestion
3 Posts 3 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.
  • T Offline
    T Offline
    tho_mee
    wrote on last edited by
    #1

    Is it possible to draw in different layers? So that if you erase something in one layer whatever you have drawn on the layers beneath won't get erased.

    C 1 Reply Last reply
    0
    • T tho_mee

      Is it possible to draw in different layers? So that if you erase something in one layer whatever you have drawn on the layers beneath won't get erased.

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      no, there is no built-in layer concept in VC++ or GDI. you'll have to come up with a custom layering mechanism. i've done it by drawing each layer into its own CBitmap/HBITMAP, then drawing the Bitmaps into a final composite bitmap for rendering to the screen.

      image processing toolkits | batch image processing

      C 1 Reply Last reply
      0
      • C Chris Losinger

        no, there is no built-in layer concept in VC++ or GDI. you'll have to come up with a custom layering mechanism. i've done it by drawing each layer into its own CBitmap/HBITMAP, then drawing the Bitmaps into a final composite bitmap for rendering to the screen.

        image processing toolkits | batch image processing

        C Offline
        C Offline
        chikach
        wrote on last edited by
        #3

        hai I want some small rectangles on one layer. Then a line has to move from one end to another(which will be like drawing line ..erasing that and drawing next line in new position).This line I want in another layer so that the rectangles are not erased. When I tried to do both rectangles and lines together the rectagles are getting erased.So if i have them in separate layers then change inone layer will not affect the other. So is it possible to have line drawing in one layer and rectangles in another ?

        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