icetImageNull(3)

icetImageNull3

Usage

#include <IceT.h>

IceTImage icetImageNull(void);

Overview

Images are created internally by the IceT library. Sometimes it is convenient to have a placeholder for a .igimage!null``null'' image, an image that does not and cannot hold data. Null images require no allocated memory to function.

If your code has the potential of using an IceTImage image object that might not otherwise be initialized, use icetImageNull to set it to a null object. This will ensure that IceT image functions that operate on it will behave deterministically.

A null image simply looks like an image with no pixels and has no color buffers. icetImageGetWidth, icetImageGetHeight, and icetImageGetNumPixels all return 0 for a null image. icetSetColorFormatand icetSetDepthFormatreturn ICET_IMAGE_COLOR_NONE and ICET_IMAGE_DEPTH_NONE, respectively.

You can identify a null image with the icetImageIsNull function.

Return Value

A null image object.

Errors

None.

Warnings

None.

Releases

7 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7–8
  2. 9–10
  3. 11–13

Bugs

None known.

From paraview 5.13.2+dfsg-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.