Simple Image Loading LibrarY  0.1.0
Public Member Functions | Protected Member Functions | List of all members
ImageContext Class Reference

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

#include <SILLYImageContext.h>

Inheritance diagram for ImageContext:
Inheritance graph
[legend]

Public Member Functions

bool flipVertically ()
 Flip pixel ordering. More...
 
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. More...
 
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 70 of file SILLYImageContext.h.

Constructor & Destructor Documentation

◆ ImageContext()

ImageContext ( size_t  width,
size_t  height 
)
protected

Constructor.

Parameters
widththe width of the image
heightthe height of the image

Member Function Documentation

◆ flipVertically()

bool flipVertically ( )

Flip pixel ordering.

Returns
true on success false otherwise

Definition at line 45 of file SILLYImageContext.cpp.


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