LibGd 2.4.0-dev
GD Graphics library
Loading...
Searching...
No Matches
Data Fields
gdPngWriteOptions Struct Reference

Options for writing PNG data. More...

#include <gd.h>

Data Fields

int compression_level
 
unsigned int filters
 
int compression_strategy
 
const gdImageMetadata * metadata
 
unsigned int resolution_x
 
unsigned int resolution_y
 

Detailed Description

Options for writing PNG data.

Field Documentation

◆ compression_level

int gdPngWriteOptions::compression_level

PNG compression level: 0-9, or -1 for the zlib default.

◆ compression_strategy

int gdPngWriteOptions::compression_strategy

One of the GD_PNG_COMPRESSION_STRATEGY_* constants.

◆ filters

unsigned int gdPngWriteOptions::filters

Bitmask of GD_PNG_FILTER_* constants.

◆ metadata

const gdImageMetadata* gdPngWriteOptions::metadata

Optional metadata to embed in the PNG.

◆ resolution_x

unsigned int gdPngWriteOptions::resolution_x

Horizontal resolution in DPI, or 0 to use the gdImage value.

◆ resolution_y

unsigned int gdPngWriteOptions::resolution_y

Vertical resolution in DPI, or 0 to use the gdImage value.


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