source: trunk/packages/vizservers/nanovis/imgLoaders/ImageLoader.cpp @ 2798

Last change on this file since 2798 was 2798, checked in by ldelgass, 12 years ago

Add emacs mode magic line in preparation for indentation cleanup

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