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. Loading bitmaps?

Loading bitmaps?

Scheduled Pinned Locked Moved C / C++ / MFC
questiondatabasegraphicsperformance
4 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
    clintsinger
    wrote on last edited by
    #1

    Hi Everyone, I have an application that is designed to load an image from the database. This image is in a compressed form like png, jpeg etc. I was wondering what is the process to loading the bitmap if it is already in memory (ie. not loading it from the disk)? Should I use something like FileMaps or something else? Cheers, Clint :)

    C 1 Reply Last reply
    0
    • C clintsinger

      Hi Everyone, I have an application that is designed to load an image from the database. This image is in a compressed form like png, jpeg etc. I was wondering what is the process to loading the bitmap if it is already in memory (ie. not loading it from the disk)? Should I use something like FileMaps or something else? Cheers, Clint :)

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

      there are a half-dozen articles on CP that handle image I/O. most of them can handle memory-based images. look in the "Bitmap and Palettes" section. -c


      Image tools: ThumbNailer, Bobber, TIFFAssembler

      C 1 Reply Last reply
      0
      • C Chris Losinger

        there are a half-dozen articles on CP that handle image I/O. most of them can handle memory-based images. look in the "Bitmap and Palettes" section. -c


        Image tools: ThumbNailer, Bobber, TIFFAssembler

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

        Hi Chris, I did go through them, unfortunately they deal with their own classes. I would like to be able to use CImage (which supports decompressing png) from the MFC library. So what I need to know is how do I tell windows that this compressed png file is in memory and not on disk without having to save a temp file to disk? Cheers, Clint

        C 1 Reply Last reply
        0
        • C clintsinger

          Hi Chris, I did go through them, unfortunately they deal with their own classes. I would like to be able to use CImage (which supports decompressing png) from the MFC library. So what I need to know is how do I tell windows that this compressed png file is in memory and not on disk without having to save a temp file to disk? Cheers, Clint

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

          i'm not familiar with CImage, but the MSDN says its Load method can take an IStream interface. so, you could hook up some kind of IStream-based COM object to read your memory-based image. (yeah, yuck) -c


          Image tools: ThumbNailer, Bobber, TIFFAssembler

          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