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. Other Discussions
  3. Article Writing
  4. class CBitmapDC : public CDC

class CBitmapDC : public CDC

Scheduled Pinned Locked Moved Article Writing
graphicshelpquestion
3 Posts 3 Posters 2 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    I desperately want a class that does a couple of specific things. It's a personal thang - I'm writing an app that will be freeware, but it's such a challenge that I'm almost willing to pay for the help! I'm tired of hunting for info, and hackiong for results. I can't get my head round the bitmap structires enough to write my own functions - hence a public request for a class. I want it to: ~ be derived from CDC so that I can draw & blit to it, etc ~ be able to load from and save to 8,16,24 and 32bit DIBs ~ flip (mirror vertically) Any takers?? If so, I have an existing CDIB class that does nearly all of the above and will send it to anyone who wants it. Thank you in advance

    R C 2 Replies Last reply
    0
    • L Lost User

      I desperately want a class that does a couple of specific things. It's a personal thang - I'm writing an app that will be freeware, but it's such a challenge that I'm almost willing to pay for the help! I'm tired of hunting for info, and hackiong for results. I can't get my head round the bitmap structires enough to write my own functions - hence a public request for a class. I want it to: ~ be derived from CDC so that I can draw & blit to it, etc ~ be able to load from and save to 8,16,24 and 32bit DIBs ~ flip (mirror vertically) Any takers?? If so, I have an existing CDIB class that does nearly all of the above and will send it to anyone who wants it. Thank you in advance

      R Offline
      R Offline
      RAJIV
      wrote on last edited by
      #2

      The easiest thing to do would be to modify your CDIB class to use a DIBSection instead of direct memory - the only thing to change here would be the way you allocate your memory - but you probably use Global Alloc any way so that too shouldnt matter. I have a DIB class which i attach to a DibSection everytime i want to use one of the GDI functions to draw into the DIB . If you have a problem, let me know at rrajivram@hotmail.com and Ill try to send you a stripped down version which will show you the way. Cheers, Rajiv

      1 Reply Last reply
      0
      • L Lost User

        I desperately want a class that does a couple of specific things. It's a personal thang - I'm writing an app that will be freeware, but it's such a challenge that I'm almost willing to pay for the help! I'm tired of hunting for info, and hackiong for results. I can't get my head round the bitmap structires enough to write my own functions - hence a public request for a class. I want it to: ~ be derived from CDC so that I can draw & blit to it, etc ~ be able to load from and save to 8,16,24 and 32bit DIBs ~ flip (mirror vertically) Any takers?? If so, I have an existing CDIB class that does nearly all of the above and will send it to anyone who wants it. Thank you in advance

        C Offline
        C Offline
        Chris Maunder
        wrote on last edited by
        #3

        Maybe http://www.codeproject.com/gdi/WebImageDC.asp will provide a starting point... ================== The original message was: I desperately want a class that does a couple of specific things. It's a personal thang - I'm writing an app that will be freeware, but it's such a challenge that I'm almost willing to pay for the help! I'm tired of hunting for info, and hackiong for results. I can't get my head round the bitmap structires enough to write my own functions - hence a public request for a class.

        I want it to:

        ~ be derived from CDC so that I can draw & blit to it, etc
        ~ be able to load from and save to 8,16,24 and 32bit DIBs
        ~ flip (mirror vertically)

        Any takers?? If so, I have an existing CDIB class that does nearly all of the above and will send it to anyone who wants it.

        Thank you in advance

        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