r3png

r3png

Class

plugins/dtype/png/r3png.h

Library

r3png

Description:

PNG image format

See Also

real/dtype/r3dtfile.h

Super Class

r3Dtfile

R3CLID_DTFILE

JavaScript

r3Png

Class Identifier

R3CLID_PNG - 2514

Methods

SELECTCHANNEL,

Attributes

Alpha, Interlaced,

R3PNGM_SELECTCHANNEL

Method

SELECTCHANNEL

Identifier

R3PNGM_SELECTCHANNEL

Param 3:

R3INT, channel id as defined below

JavaScript

obj.SELECTCHANNEL(p3);

Description

Selects a channel for IO operations.

Alpha

Attribute

Alpha

Identifier

R3PNGA_Alpha

JavaScript type

Boolean

C type

R3BOOL

Description

has alpha channel

Syntax


jsobj.SetAlpha(value);
value = jsobj.GetAlpha();


R3BOOL value = ...;
R3SetAttrs(r3obj, R3PNGA_Alpha, value, R3TAG_END);
R3BOOL value;
R3GetAttrs(r3obj, R3PNGA_Alpha, &value, R3TAG_END);

Interlaced

Attribute

Interlaced

Identifier

R3PNGA_Interlaced

JavaScript type

Boolean

C type

R3BOOL

Description

interlaced png image

Syntax


jsobj.SetInterlaced(value);
value = jsobj.GetInterlaced();


R3BOOL value = ...;
R3SetAttrs(r3obj, R3PNGA_Interlaced, value, R3TAG_END);
R3BOOL value;
R3GetAttrs(r3obj, R3PNGA_Interlaced, &value, R3TAG_END);

Error numbers

R3PNGERR_NOTPNG
R3PNGERR_NOTSUPPORTED
R3PNGERR_NOTENOUGHMEM
R3PNGERR_UNKNOWN

Channel ids used by R3PNGM_SELECTCHANNEL

R3PNG_ALPHA
R3PNG_RGB