= 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 == |