Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

# Keos::CImagesLoader Class Reference

Class managing the import / export of the common formats of image. More...

`#include <KeosImagesLoader.h>`

Inheritance diagram for Keos::CImagesLoader:

List of all members.

## Public Member Functions

| CImagesLoader ()
| Default constructor.
| ~CImagesLoader ()
| Destructor.
virtual CImage * | LoadFromFile (const String &strFilename)
| Load an image from a file.
virtual void | SaveToFile (const CImage *pObject, const String &strFilename)
| Save an image in a file.

## Detailed Description

Class managing the import / export of the common formats of image.

Use the DevIL library.

Definition at line 33 of file KeosImagesLoader.h.

## Constructor & Destructor Documentation

Keos::CImagesLoader::CImagesLoader | ( |  | ) |

| Default constructor. Definition at line 35 of file KeosImagesLoader.cpp.

Keos::CImagesLoader::~CImagesLoader | ( |  | ) |

| Destructor. Definition at line 53 of file KeosImagesLoader.cpp.

## Member Function Documentation

CImage * Keos::CImagesLoader::LoadFromFile | ( | const String & | strFilename | ) | `[virtual]`

| Load an image from a file.

Parameters:

  | strFilename | Name of the file to be loaded.

Returns:
  Pointer on the created image.

Reimplemented from Keos::ILoader< CImage >.

Definition at line 60 of file KeosImagesLoader.cpp.

References LOADINGFAILED_EXCEPT, and Keos::PXF_A8R8G8B8.

void Keos::CImagesLoader::SaveToFile | ( | const CImage * | pObject,
|  | const String & | strFilename
| ) | `[virtual]`

| Save an image in a file.

Parameters:

  | pObject | Pointer on the image to be saved.
  | strFilename | Name of the target file.

Reimplemented from Keos::ILoader< CImage >.

Definition at line 90 of file KeosImagesLoader.cpp.

References Keos::CImage::CopyImage(), Keos::CImage::Flip(), Keos::GetBytesPerPixel(), Keos::CImage::GetSize(), LOADINGFAILED_EXCEPT, Keos::PXF_A8R8G8B8, Keos::CVector2< T >::x, and Keos::CVector2< T >::y.

The documentation for this class was generated from the following files:

- KeosEngine/KeosImagesLoader.h
- KeosEngine/KeosImagesLoader.cpp