problem with"temporary storage of images"
-
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
-
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
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.
-
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
Use a simple linked list of image data. - Parhar