LispWorks CAPI Reference Manual > 2 GP Reference Entries

NextPrevUpTopContentsIndex

image-access-pixel

Function
Summary

Gets and sets the pixels in an Image Access object.

Package

graphics-ports

Signature

image-access-pixel image-access x y => color-rep

(setf image-access-pixel) color-rep image-access x y => color-rep

Arguments

image-access

An Image Access object

x

An integer.

y

An integer.

Values

color-rep

A color reference.

Description

The function image-access-pixel returns the pixel value at position x , y in the Image Access object image-access .

The pixel value color-rep is a color representation like that returned by convert-color. If needed, color-rep can be converted to an RGB value using unconvert-color. color-rep can contain an alpha value, for images with an alpha channel.

The function (setf image-access-pixel) sets the value of the pixel at position x , y in the Image Access object image-access .

image-access must be an Image Access object returned by make-image-access.

Example

See these example files@

examples/capi/graphics/image-access.lisp

examples/capi/graphics/image-access-alpha.lisp

See also

image-access-pixels-from-bgra
image-access-pixels-to-bgra
image-access-transfer-to-image
image-access-transfer-from-image
free-image-access
make-image-access


LispWorks CAPI Reference Manual - 21 Dec 2009

NextPrevUpTopContentsIndex