source: trunk/vizservers/nanovis/imgLoaders/ImageLoader.cpp @ 823

Last change on this file since 823 was 823, checked in by vrinside, 17 years ago

Image Loaders - BMP (Currently BMP loader was implmented)
For extensibility, Bridge/Singleton? Pattern was used

File size: 598 bytes
Line 
1#include "ImageLoader.h"
2#include "ImageLoaderImpl.h"
3#include <map>
4#include <string>
5#include <stdio.h>
6
7ImageLoader::ImageLoader()
8    : _loaderImpl(0)
9{
10}
11
12Image* ImageLoader::load(const char* fileName)
13{
14    if (_loaderImpl)
15    {
16        _loaderImpl->_targetImageFormat = Image::IMG_RGB;
17        return _loaderImpl->load(fileName);
18    }
19   
20    return 0;
21}
22
23Image* ImageLoader::load(const char* fileName, const Image::ImageFormat format)
24{
25    if (_loaderImpl)
26    {
27        _loaderImpl->_targetImageFormat = format;
28        return _loaderImpl->load(fileName);
29    }
30   
31    return 0;
32}
33
34
Note: See TracBrowser for help on using the repository browser.