QOpenGLPixelTransferOptions露
- PyQt5.QtGui.QOpenGLPixelTransferOptions
Description露
The QOpenGLPixelTransferOptions class describes the pixel storage modes that affect the unpacking of pixels during texture upload.
Methods露
- __init__()
Constructs a new QOpenGLPixelTransferOptions instance with the default settings.
- __init__(QOpenGLPixelTransferOptions)
TODO
- alignment() → int
Returns the current alignment requirement for each pixel row.
- imageHeight() → int
Returns the currently set image height.
See also
- isLeastSignificantBitFirst() → bool
Returns
trueif bits within a byte are ordered from least to most significant.
- isSwapBytesEnabled() → bool
Returns
trueif the byte ordering for multibyte components is reversed.
- rowLength() → int
Returns the currently set row length.
See also
- setAlignment(int)
TODO
- setImageHeight(int)
Sets the image height for 3D textures to imageHeight. Corresponds to
GL_UNPACK_IMAGE_HEIGHT. The default value is 0.See also
- setLeastSignificantByteFirst(bool)
lsbFirst specifies if bits within a byte are ordered from least to most significat. The default value is
false, meaning that the first bit in each byte is the most significant one. This is significant for bitmap data only. Corresponds toGL_UNPACK_LSB_FIRST.
- setRowLength(int)
Sets the number of pixels in a row to rowLength. Corresponds to
GL_UNPACK_ROW_LENGTH. The default value is 0.See also
- setSkipImages(int)
Sets the number of images that are skipped to skipImages. Corresponds to
GL_UNPACK_SKIP_IMAGES. Equivalent to incrementing the pointer passed to setData(). The default value is 0.See also
- setSkipPixels(int)
Sets the number of pixels that are skipped to skipPixels. Corresponds to
GL_UNPACK_SKIP_PIXELS. Equivalent to incrementing the pointer passed to setData(). The default value is 0.See also
- setSkipRows(int)
Sets the number of rows that are skipped to skipRows. Corresponds to
GL_UNPACK_SKIP_ROWS. Equivalent to incrementing the pointer passed to setData(). The default value is 0.See also
- setSwapBytesEnabled(bool)
swapBytes specifies if the byte ordering for multibyte components is reversed. The default value is
false. Corresponds toGL_UNPACK_SWAP_BYTES.See also
- skipImages() → int
Returns the number of images that are skipped.
See also
- skipPixels() → int
Returns the number of pixels that are skipped.
See also
- skipRows() → int
Returns the number of rows that are skipped.
See also
- swap(QOpenGLPixelTransferOptions)
TODO