pngz
easy png io library that converts all images into 8 bit RGBA.
Loading...
Searching...
No Matches
pngz Struct Reference

easy png structure. More...

#include <pngz.h>

Collaboration diagram for pngz:

Data Fields

char * path
 default path to load from and save to
 
union { 
 
   unsigned   height 
 
   unsigned   rows 
 
};  
 union alias for either height or rows
 
union { 
 
   unsigned   width 
 
   unsigned   cols 
 
};  
 union alias for either width or cols
 
pixel ** pixels
 [height][width] pixel buffer
 

Detailed Description

easy png structure.

always contains RGBA8 color (0x0 - 0xFFFFFF). pixel buffer is [height][width] pixels ([rows][cols])

Definition at line 23 of file pngz.h.

Field Documentation

◆ [union]

union { ... } pngz

union alias for either height or rows

◆ [union]

union { ... } pngz

union alias for either width or cols

◆ cols

unsigned pngz::cols

Definition at line 34 of file pngz.h.

◆ height

unsigned pngz::height

Definition at line 28 of file pngz.h.

◆ path

char* pngz::path

default path to load from and save to

Definition at line 25 of file pngz.h.

◆ pixels

pixel** pngz::pixels

[height][width] pixel buffer

Definition at line 37 of file pngz.h.

◆ rows

unsigned pngz::rows

Definition at line 29 of file pngz.h.

◆ width

unsigned pngz::width

Definition at line 33 of file pngz.h.


The documentation for this struct was generated from the following file: