wxImageCache.cpp

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
00002 
00027 #include "wxImageCache.h"
00028 
00029 wxImage imageCacheEntry2wxImage(ImageCache::EntryPtr e)
00030 {
00031     ImageCacheRGB8Ptr img = e->get8BitImage();
00032     if (img) {
00033         return wxImage(img->width(),
00034                        img->height(),
00035                        (unsigned char *) img->data(),
00036                        true);
00037     } else {
00038         // invalid wxImage
00039         return wxImage();
00040     }
00041 
00042 }
00043 

Generated on 25 Oct 2014 for Hugintrunk by  doxygen 1.4.7