---
name: "icetImageGetWidth"
section: "3"
platform: "linux"
package: "paraview"
version: "5.13.2+dfsg-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/icetImageGetWidth"
---

# icetImageGetWidth(3)

## NAME

**icetImageGetWidth**,**icetImageGetHeight**,**icetImageGetNumPixels**-- get dimensions of an image

## Synopsis

\#include \<IceT.h\>

| | | | | |
| --- | --- | --- | --- | --- |
| IceTSizeType | **icetImageGetWidth** | ( const **IceTImage** | *image* | ); |
| IceTSizeType | **icetImageGetHeight** | ( const **IceTImage** | *image* | ); |
| IceTSizeType | **icetImageGetNumPixels** | ( const **IceTImage** | *image* | ); |

## Description

**icetImageGetWidth**,**icetImageGetHeight**,and **icetImageGetNumPixels**allow you to query the size of an *image* with respect to the number of pixels. These functions define the buffer size returned by **icetImageGetColor** and **icetImageGetDepth**.

## Return Value

**icetImageGetWidth**returns the number of pixels along the horizontal axis of the *image* and **icetImageGetHeight**returns the number of pixels along the vertical axis of the *image*. **icetImageGetNumPixels**is a convenience function that returns the total number of pixels in *image* (the width times the height).

## Errors

None.

## Warnings

None.

## Bugs

None known.

## Copyright

Copyright (C)2010 Sandia Corporation

Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain rights in this software.

This source code is released under the New BSD License.

## See Also

[*icetImageGetColor*(3)](/icetImageGetColor/3.md), [*icetImageGetDepth*(3)](/icetImageGetDepth/3.md)
