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. Simple question = (I hope) simple answer

Simple question = (I hope) simple answer

Scheduled Pinned Locked Moved C / C++ / MFC
questiongraphicscareer
3 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.
  • C Offline
    C Offline
    CoY0te
    wrote on last edited by
    #1

    I'm using CPaintDC class for drawing directly on a window. Right now I would like to draw into a CBitmap object and then copy it to screen to avoid blinking and to make imege storing possible. Any simple way to create CPaintDC that draws into CBitmap object? :-D Railgun is like a Gilette Mach 3 - it does the job with one, easy stroke.

    T 1 Reply Last reply
    0
    • C CoY0te

      I'm using CPaintDC class for drawing directly on a window. Right now I would like to draw into a CBitmap object and then copy it to screen to avoid blinking and to make imege storing possible. Any simple way to create CPaintDC that draws into CBitmap object? :-D Railgun is like a Gilette Mach 3 - it does the job with one, easy stroke.

      T Offline
      T Offline
      Tomasz Sowinski
      wrote on last edited by
      #2

      [CoY0te] wrote: Any simple way to create CPaintDC that draws into CBitmap object? Actually, it'll be CDC (not CPaintDC) which draws into CBitmap. There should be CMemDC class rigt here on CP which does exectly that. Tomasz Sowinski -- http://www.shooltz.com

      - It's for protection
      - Protection from what? Zee Germans?

      C 1 Reply Last reply
      0
      • T Tomasz Sowinski

        [CoY0te] wrote: Any simple way to create CPaintDC that draws into CBitmap object? Actually, it'll be CDC (not CPaintDC) which draws into CBitmap. There should be CMemDC class rigt here on CP which does exectly that. Tomasz Sowinski -- http://www.shooltz.com

        - It's for protection
        - Protection from what? Zee Germans?

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

        Thank You. I would probably spend some time looking for it in the MSDN before i would find out that MFC doesn't support drawing into CBitmap this way. I'll check out that CMemDC class right now. Thank You again. Greetings from Poland, heh. :cool: Railgun is like a Gilette Mach 3 - it does the job with one, easy stroke.

        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