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. problem with"temporary storage of images"

problem with"temporary storage of images"

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++
3 Posts 3 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
    a_david123
    wrote on last edited by
    #1

    Respected all Regards! I am a begginers n VC++.i have a problem. " I have a number of images(bitmaps) that are stored on disk,I want to read all the images once and store all the images in a temprary storage area when my program runing instead of reading one by one image,I think "CImageList " will solve my prolem but not because this store all the images of same size and i have images of different sizes. so plz help me that how i handle this problem david

    K T 2 Replies Last reply
    0
    • A a_david123

      Respected all Regards! I am a begginers n VC++.i have a problem. " I have a number of images(bitmaps) that are stored on disk,I want to read all the images once and store all the images in a temprary storage area when my program runing instead of reading one by one image,I think "CImageList " will solve my prolem but not because this store all the images of same size and i have images of different sizes. so plz help me that how i handle this problem david

      K Offline
      K Offline
      khan
      wrote on last edited by
      #2

      You can use CBitmap to load the bitmaps, but create the CBitmap objects dynamically. And you can have a class variable like: CPtrArray m_ptrBitmapArray; CBitmap* b; Do the following for all bitmaps. b = new CBitmap; b->LoadBitmap(...); Then add the bitmap to the array. m_ptrBitmapArray.Add(b); You can again access them like: CBitmap* b; b = (CBitmap*)m_ptrBitmapArray.GetAt(0); this is this.

      1 Reply Last reply
      0
      • A a_david123

        Respected all Regards! I am a begginers n VC++.i have a problem. " I have a number of images(bitmaps) that are stored on disk,I want to read all the images once and store all the images in a temprary storage area when my program runing instead of reading one by one image,I think "CImageList " will solve my prolem but not because this store all the images of same size and i have images of different sizes. so plz help me that how i handle this problem david

        T Offline
        T Offline
        The Code Machine
        wrote on last edited by
        #3

        Use a simple linked list of image data. - Parhar

        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