---
name: "VistaIOGetPixel"
section: "3"
platform: "linux"
package: "libvistaio-dev"
version: "1.2.19-3+b2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/VistaIOGetPixel"
---

# VistaIOGetPixel(3)

get and set pixel values

## NAME

VistaIOGetPixel, VistaIOSetPixel - get and set pixel values

## SYNOPSIS

```
#include <vistaio.h>
```

**VistaIODouble VistaIOGetPixel (***image***,** *band***,** *row***,** *column***)**

**VistaIOImage** *image***;** **int** *band***,** *row***,** *column***;**

**void VistaIOSetPixel (***image***,** *band***,** *row***,** *column***,** *value***)**

**VistaIOImage** *image***;** **int** *band***,** *row***,** *column***;** **VistaIODouble** *value***;**

## ARGUMENTS

- *image*

  **Specifies the image containing the pixel.**

- *band*, *row*, *column*

  **Specify the band, row, and column of the pixel.**

- *value*

  **Specifies the pixel's new value.**

## DESCRIPTION

**VistaIOGetPixel fetches the value of the specified pixel and returns it as** **a VistaIODouble, casting it from the image's actual pixel representation** **if necessary.**

**VistaIOSetPixel sets the specified pixel to** *value***, casting it to**  **the image's actual pixel representation if necessary.**

## RETURN VALUES

**VistaIOGetPixel returns the value of the specified pixel.**

## SEE ALSO

[**VistaIOImage**(3)](/VistaIOImage/3.md),

## NOTES

**If the image is known to have a particular pixel representation then the** **VistaIOPixel macro (see [VistaIOImage(3)](/VistaIOImage/3.md)) can be used, instead, yielding** **greater efficiency.**

## AUTHOR

**Art Pope \<pope@cs.ubc.ca\>**

**Adaption to vistaio: Gert Wollny \<gw.fossdev@gmail.com\>**
