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. Create CBitmap from another CBitmap

Create CBitmap from another CBitmap

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
3 Posts 2 Posters 4 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.
  • _ Offline
    _ Offline
    _Flaviu
    wrote on last edited by
    #1

    Which are the way to copy a CBitmap to another CBitmap, but have both of them ? In fact, I want to create a CBitmap from another CBitmap ... could you help me ? Thank you.

    J 1 Reply Last reply
    0
    • _ _Flaviu

      Which are the way to copy a CBitmap to another CBitmap, but have both of them ? In fact, I want to create a CBitmap from another CBitmap ... could you help me ? Thank you.

      J Offline
      J Offline
      Jochen Arndt
      wrote on last edited by
      #2

      You must do it by creating the new bitmap using the size of the source, select both bitmaps into DCs and call BitBlt to copy the image bits. Examples can be found on the web (found this searching for "cbitmap copy": http://www.tech-archive.net/Archive/VC/microsoft.public.vc.mfc/2007-07/msg01320.html[^])

      _ 1 Reply Last reply
      0
      • J Jochen Arndt

        You must do it by creating the new bitmap using the size of the source, select both bitmaps into DCs and call BitBlt to copy the image bits. Examples can be found on the web (found this searching for "cbitmap copy": http://www.tech-archive.net/Archive/VC/microsoft.public.vc.mfc/2007-07/msg01320.html[^])

        _ Offline
        _ Offline
        _Flaviu
        wrote on last edited by
        #3

        Thank you, I have succeeded ! :)

        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