Three Indices needed when using the Pixels Property

Error when accessing the values in the "Pixels" property.

In order to accommodate multi-frame images, the Pixels property of an image always returns a 3-dimensional array, the dimensions being x, y, and frame-number. Therefore to access the pixels of a single image, this last dimension (always 1) must still be included. Note that the Visual Basic error message is particularly confusing, as it suggests that an index is out-of-bounds, rather than saying that the number of indices is wrong.

Relevance: