C

Obsolete Members for Texture

The following members of class Texture are deprecated. They are provided to keep old source code working. We strongly advise against using them in new code.

Public Functions

(deprecated) int8_t bytesPerPixel() const
(deprecated) const unsigned char *dataAtOffset(int16_t x, int16_t y) const

Member Function Documentation

int8_t Texture::bytesPerPixel() const

This function is deprecated. We strongly advise against using it in new code.

Returns the number of bytes per pixel in the texture.

Use bitsPerPixel() instead.

const unsigned char *Texture::dataAtOffset(int16_t x, int16_t y) const

This function is deprecated. We strongly advise against using it in new code.

Use pixelData() instead.

Returns a pointer to the texture data starting at x-offset x and y-offset y.

Available under certain Qt licenses.
Find out more.