Simple Image Loading LibrarY 0.1.0
Public Member Functions
PNGImageLoader Class Reference

Loader for PNG Image. More...

#include <SILLYPNGImageLoader.h>

Inheritance diagram for PNGImageLoader:
Inheritance graph
[legend]
Collaboration diagram for PNGImageLoader:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void destroyContext (ImageContext *context)
 Destroy the image context.
const char * getIdentifierString () const
 Return the name of the loader.
ImageContextloadHeader (PixelFormat &formatSource, DataSource *data)
 Parse the header of the image and fill the header struct.
bool loadImageData (PixelOrigin origin, DataSource *data, ImageContext *context)
 Parse the pixels data of the image and fill the header struct.

Detailed Description

Loader for PNG Image.

Definition at line 42 of file SILLYPNGImageLoader.h.


Member Function Documentation

void destroyContext ( ImageContext context) [inherited]

Destroy the image context.

Parameters:
contexta pointer to the context

Definition at line 47 of file SILLYImageLoader.cpp.

ImageContext * loadHeader ( PixelFormat formatSource,
DataSource data 
) [virtual]

Parse the header of the image and fill the header struct.

Parameters:
formatSourcethis var should contains the pixel format used to store the image initialy
datathe input of the image data
Returns:
Context for the rest of the parsing or 0 if an error occured

Implements ImageLoader.

Definition at line 83 of file SILLYPNGImageLoader.cpp.

bool loadImageData ( PixelOrigin  origin,
DataSource data,
ImageContext context 
) [virtual]

Parse the pixels data of the image and fill the header struct.

Parameters:
originthe layout of the pixel in the resulting pixel array
datathe input of the image data
contextthe data associated to the image parsing
Returns:
true on success false on error

Implements ImageLoader.

Definition at line 149 of file SILLYPNGImageLoader.cpp.


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