Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
ion::CImage Class Reference

#include <CImage.h>

Collaboration diagram for ion::CImage:
Collaboration graph

Public Member Functions

 CImage (ion::byte *const Data, vec2i const Size, int const Channels)
 CImage (color4f const &Color, bool const Alpha=false)
 ~CImage ()
int GetWidth () const
int GetHeight () const
vec2i GetSize () const
int GetStride () const
int GetChannels () const
color4i GetPixel (int const x, int const y) const
void SetPixel (int const x, int const y, color4i const color)
ion::byte const * GetData () const
ion::byteGetData ()
bool HasAlpha () const
void Write (std::string const &fileName)
void FlipY ()
void Crop (vec2i const &Position, vec2i const &Size)

Static Public Member Functions

static CImageLoad (std::string const &FileName)

Protected Attributes

vec2i Size
int Channels

Constructor & Destructor Documentation

ion::CImage::CImage ( ion::byte *const  Data,
vec2i const  Size,
int const  Channels 
ion::CImage::CImage ( color4f const &  Color,
bool const  Alpha = false 
ion::CImage::~CImage ( )

Member Function Documentation

void ion::CImage::Crop ( vec2i const &  Position,
vec2i const &  Size 
void ion::CImage::FlipY ( )
int ion::CImage::GetChannels ( ) const
ion::byte const * ion::CImage::GetData ( ) const
ion::byte * ion::CImage::GetData ( )
int ion::CImage::GetHeight ( ) const
color4i ion::CImage::GetPixel ( int const  x,
int const  y 
) const
vec2i ion::CImage::GetSize ( ) const
int ion::CImage::GetStride ( ) const
int ion::CImage::GetWidth ( ) const
bool ion::CImage::HasAlpha ( ) const
CImage * ion::CImage::Load ( std::string const &  FileName)
void ion::CImage::SetPixel ( int const  x,
int const  y,
color4i const  color 
void ion::CImage::Write ( std::string const &  fileName)

Member Data Documentation

int ion::CImage::Channels
byte* ion::CImage::Data
vec2i ion::CImage::Size

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