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

Image Context for PNG Image Loader. More...

#include <SILLYPNGImageContext.h>

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

Public Member Functions

bool flipVertically ()
 Flip pixel ordering.
 
size_t getHeight () const
 
PixelFormat getPixelFormat () const
 
size_t getWidth () const
 
 PNGImageContext (DataSource *data)
 
int read (png_bytep data, png_size_t length)
 
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.
 

Protected Member Functions

void setHeight (size_t height)
 
void setWidth (size_t width)
 

Friends

class PNGImageLoader
 

Detailed Description

Image Context for PNG Image Loader.

Definition at line 45 of file SILLYPNGImageContext.h.

Constructor & Destructor Documentation

◆ PNGImageContext()

Definition at line 59 of file SILLYPNGImageContext.cpp.

◆ ~PNGImageContext()

Definition at line 65 of file SILLYPNGImageContext.cpp.

Member Function Documentation

◆ flipVertically()

bool flipVertically ( )
inherited

Flip pixel ordering.

Returns
true on success false otherwise

Definition at line 45 of file SILLYImageContext.cpp.

◆ read()

int read ( png_bytep  data,
png_size_t  length 
)

Definition at line 46 of file SILLYPNGImageContext.cpp.

Friends And Related Symbol Documentation

◆ PNGImageLoader

friend class PNGImageLoader
friend

Definition at line 70 of file SILLYPNGImageContext.h.


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