#include <StdPNG.h>
Public Member Functions | |
CPNGFile () | |
~CPNGFile () | |
void | ClearPngStructs () |
void | Default () |
void | Clear () |
bool | Load (BYTE *pFile, int iSize) |
DWORD | GetPix (int iX, int iY) |
uint32_t * | GetRow (int iY) |
bool | Create (int iWdt, int iHgt, bool fAlpha) |
bool | SetPix (int iX, int iY, DWORD dwValue) |
bool | Save (const char *szFilename) |
BYTE * | GetImageData () |
int | GetBitsPerPixel () |
Static Public Member Functions | |
static void | ScheduleSaving (CPNGFile *png, const char *filename) |
static void | WaitForSaves () |
Public Attributes | |
unsigned long | iWdt |
unsigned long | iHgt |
int | iBPC |
int | iClrType |
int | iIntrlcType |
int | iCmprType |
int | iFltrType |
CPNGFile::CPNGFile | ( | ) |
Definition at line 96 of file StdPNG.cpp.
References Default().
CPNGFile::~CPNGFile | ( | ) |
Definition at line 115 of file StdPNG.cpp.
References Clear().
void CPNGFile::Clear | ( | ) |
Definition at line 136 of file StdPNG.cpp.
References ClearPngStructs().
Referenced by Create(), Load(), Save(), and ~CPNGFile().
void CPNGFile::ClearPngStructs | ( | ) |
Definition at line 121 of file StdPNG.cpp.
Referenced by Clear(), and Save().
bool CPNGFile::Create | ( | int | iWdt, |
int | iHgt, | ||
bool | fAlpha | ||
) |
Definition at line 191 of file StdPNG.cpp.
References Clear(), iBPC, iClrType, iCmprType, iFltrType, iHgt, iIntrlcType, and iWdt.
void CPNGFile::Default | ( | ) |
Definition at line 101 of file StdPNG.cpp.
Referenced by CPNGFile().
int CPNGFile::GetBitsPerPixel | ( | ) |
|
inline |
DWORD CPNGFile::GetPix | ( | int | iX, |
int | iY | ||
) |
Definition at line 175 of file StdPNG.cpp.
References C4RGB, iClrType, and RGBA().
Referenced by C4TextureShape::Load(), C4SolidMask::LoadMaskFromFile(), and C4Surface::ReadPNG().
|
inline |
Definition at line 56 of file StdPNG.h.
Referenced by C4Surface::ReadPNG().
bool CPNGFile::Load | ( | BYTE * | pFile, |
int | iSize | ||
) |
Definition at line 155 of file StdPNG.cpp.
References Clear(), and iSize.
Referenced by C4TextureShape::Load(), C4SolidMask::LoadMaskFromFile(), and C4Surface::ReadPNG().
bool CPNGFile::Save | ( | const char * | szFilename | ) |
Definition at line 236 of file StdPNG.cpp.
References Clear(), ClearPngStructs(), iBPC, iClrType, iCmprType, iFltrType, iHgt, iIntrlcType, and iWdt.
|
static |
Definition at line 354 of file StdPNG.cpp.
References StdThread::Start().
Referenced by C4GraphicsSystem::DoSaveScreenshot(), and C4Surface::SavePNG().
bool CPNGFile::SetPix | ( | int | iX, |
int | iY, | ||
DWORD | dwValue | ||
) |
Definition at line 216 of file StdPNG.cpp.
References GetBlueValue, GetGreenValue, GetRedValue, and iClrType.
|
static |
Definition at line 362 of file StdPNG.cpp.
References CPNGSaveThread::HasPendingThreads(), and LogSilent().
Referenced by C4Application::Clear().
int CPNGFile::iClrType |
Definition at line 45 of file StdPNG.h.
Referenced by Create(), GetBitsPerPixel(), GetPix(), C4Surface::ReadPNG(), Save(), and SetPix().
unsigned long CPNGFile::iHgt |
Definition at line 44 of file StdPNG.h.
Referenced by Create(), C4TextureShape::Load(), C4SolidMask::LoadMaskFromFile(), C4Surface::ReadPNG(), and Save().
int CPNGFile::iIntrlcType |
unsigned long CPNGFile::iWdt |
Definition at line 44 of file StdPNG.h.
Referenced by Create(), C4TextureShape::Load(), C4SolidMask::LoadMaskFromFile(), C4Surface::ReadPNG(), and Save().