SILLY_ImageContext

Langue: en

Version: 152568 (fedora - 05/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

SILLY::ImageContext - Store the data needed by an ImageLoader object during the parsing of an image.

SYNOPSIS


#include <SILLYImageContext.h>

Inherited by JPGImageContext, PNGImageContext, and TGAImageContext.

Public Member Functions


bool flipVertically ()
Flip pixel ordering.
size_t getHeight () const

PixelFormat getPixelFormat () const

size_t getWidth () const

void setDestination (byte *pixels, size_t length, PixelFormat format)
Set the destination of the loading.
void setNextPixel (byte red, byte green, byte bleu, byte alpha)
Set the next pixel of the image.
virtual ~ImageContext ()
Destructor.

Protected Member Functions


ImageContext (size_t width, size_t height)
Constructor.
void setHeight (size_t height)

void setWidth (size_t width)

Detailed Description

Store the data needed by an ImageLoader object during the parsing of an image.

Definition at line 43 of file SILLYImageContext.h.

Constructor & Destructor Documentation

ImageContext (size_t width, size_t height) [inline, protected]

Constructor.

Parameters:

width the width of the image
height the height of the image

Definition at line 35 of file SILLYImageContext.icpp.

Member Function Documentation

bool flipVertically ()

Flip pixel ordering.

Returns:

true on success false otherwise

Definition at line 45 of file SILLYImageContext.cpp.

Author

Generated automatically by Doxygen for Simple Image Loading LibrarY from the source code.