Older Newer
Sun, 16 Feb 2020 01:44:12 . . . . SyneRyder [Initial variable definition]


Changes by last author:

Added:
= planes =

== Syntax ==

int planes

== Description ==

The planes variable contains the number of channels in the image. This includes all color channels and any additional alpha channels available. It returns the same value as the Z variable.

== Example ==

<code>

int totalPlanes = planes;

int colorPlanesOnly = planesWithoutAlpha;

int alphaPlanes = planes - planesWithoutAlpha;

printf("Total channels/planes: %d\nColor planes only: %d\nAlpha channels: %d", totalPlanes, colorPlanesOnly, alphaPlanes);

</code>

== See Also ==

planesWithoutAlpha, Z