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. desktop capture

desktop capture

Scheduled Pinned Locked Moved C / C++ / MFC
graphicstutorial
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.
  • A Offline
    A Offline
    amit code
    wrote on last edited by
    #1

    hi.. my program is about to capture the dektop by creating compatible dc and compatible bitmap and than convert it from ddb to dib. But I want to compress it before storing it in DAT format. How to proceed with this

    prashant

    J 1 Reply Last reply
    0
    • A amit code

      hi.. my program is about to capture the dektop by creating compatible dc and compatible bitmap and than convert it from ddb to dib. But I want to compress it before storing it in DAT format. How to proceed with this

      prashant

      J Offline
      J Offline
      James R Twine
      wrote on last edited by
      #2

      Since you mention a specific format (DAT), it is unclear if you mean that you want to scale the image before storing it, or if you really mean data compression.    Scaling can be done in a coarse fashion by drawing the image to a target DC with reduced target width and height values.  GDI+ offers functions that may make a better quality image, as will a dedicated graphics library.    If you really mean data compression, which should happen after the image is first converted to its target format (DAT?), then you can use a library like ZLIB[^].    Lastly, if you meant tape backup (or other offline/removable storage) when you said "DAT", then ZLIB helps there, too.    Peace!

      -=- James
      Please rate this message - let me know if I helped or not! * * * If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
      Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
      See DeleteFXPFiles

      A 1 Reply Last reply
      0
      • J James R Twine

        Since you mention a specific format (DAT), it is unclear if you mean that you want to scale the image before storing it, or if you really mean data compression.    Scaling can be done in a coarse fashion by drawing the image to a target DC with reduced target width and height values.  GDI+ offers functions that may make a better quality image, as will a dedicated graphics library.    If you really mean data compression, which should happen after the image is first converted to its target format (DAT?), then you can use a library like ZLIB[^].    Lastly, if you meant tape backup (or other offline/removable storage) when you said "DAT", then ZLIB helps there, too.    Peace!

        -=- James
        Please rate this message - let me know if I helped or not! * * * If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
        Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
        See DeleteFXPFiles

        A Offline
        A Offline
        amit code
        wrote on last edited by
        #3

        Thanks James for reply.I mean data compression. I will go through the link about ZLIB. Thanx

        prashant

        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