QOpenGLPixelTransferOptions¶
The
QOpenGLPixelTransferOptions
class describes the pixel storage modes that affect the unpacking of pixels during texture upload. More…
Synopsis¶
Functions¶
def
alignment
()def
imageHeight
()def
isLeastSignificantBitFirst
()def
isSwapBytesEnabled
()def
rowLength
()def
setAlignment
(alignment)def
setImageHeight
(imageHeight)def
setLeastSignificantByteFirst
(lsbFirst)def
setRowLength
(rowLength)def
setSkipImages
(skipImages)def
setSkipPixels
(skipPixels)def
setSkipRows
(skipRows)def
setSwapBytesEnabled
(swapBytes)def
skipImages
()def
skipPixels
()def
skipRows
()def
swap
(other)
Detailed Description¶
- class PySide2.QtGui.QOpenGLPixelTransferOptions¶
PySide2.QtGui.QOpenGLPixelTransferOptions(arg__1)
- param arg__1:
Constructs a new
QOpenGLPixelTransferOptions
instance with the default settings.
- PySide2.QtGui.QOpenGLPixelTransferOptions.alignment()¶
- Return type:
int
Returns the current alignment requirement for each pixel row.
See also
- PySide2.QtGui.QOpenGLPixelTransferOptions.imageHeight()¶
- Return type:
int
Returns the currently set image height.
See also
- PySide2.QtGui.QOpenGLPixelTransferOptions.isLeastSignificantBitFirst()¶
- Return type:
bool
Returns
true
if bits within a byte are ordered from least to most significant.
- PySide2.QtGui.QOpenGLPixelTransferOptions.isSwapBytesEnabled()¶
- Return type:
bool
Returns
true
if the byte ordering for multibyte components is reversed.
- PySide2.QtGui.QOpenGLPixelTransferOptions.rowLength()¶
- Return type:
int
Returns the currently set row length.
See also
- PySide2.QtGui.QOpenGLPixelTransferOptions.setAlignment(alignment)¶
- Parameters:
alignment – int
Sets the
alignment
requirements for each pixel row. Corresponds toGL_UNPACK_ALIGNMENT
. The default value is 4, as specified by OpenGL.See also
- PySide2.QtGui.QOpenGLPixelTransferOptions.setImageHeight(imageHeight)¶
- Parameters:
imageHeight – int
Sets the image height for 3D textures to
imageHeight
. Corresponds toGL_UNPACK_IMAGE_HEIGHT
. The default value is 0.See also
- PySide2.QtGui.QOpenGLPixelTransferOptions.setLeastSignificantByteFirst(lsbFirst)¶
- Parameters:
lsbFirst – bool
lsbFirst
specifies if bits within a byte are ordered from least to most significat. The default value isfalse
, 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
.
- PySide2.QtGui.QOpenGLPixelTransferOptions.setRowLength(rowLength)¶
- Parameters:
rowLength – int
Sets the number of pixels in a row to
rowLength
. Corresponds toGL_UNPACK_ROW_LENGTH
. The default value is 0.See also
- PySide2.QtGui.QOpenGLPixelTransferOptions.setSkipImages(skipImages)¶
- Parameters:
skipImages – int
Sets the number of images that are skipped to
skipImages
. Corresponds toGL_UNPACK_SKIP_IMAGES
. Equivalent to incrementing the pointer passed tosetData()
. The default value is 0.See also
- PySide2.QtGui.QOpenGLPixelTransferOptions.setSkipPixels(skipPixels)¶
- Parameters:
skipPixels – int
Sets the number of pixels that are skipped to
skipPixels
. Corresponds toGL_UNPACK_SKIP_PIXELS
. Equivalent to incrementing the pointer passed tosetData()
. The default value is 0.See also
- PySide2.QtGui.QOpenGLPixelTransferOptions.setSkipRows(skipRows)¶
- Parameters:
skipRows – int
Sets the number of rows that are skipped to
skipRows
. Corresponds toGL_UNPACK_SKIP_ROWS
. Equivalent to incrementing the pointer passed tosetData()
. The default value is 0.See also
- PySide2.QtGui.QOpenGLPixelTransferOptions.setSwapBytesEnabled(swapBytes)¶
- Parameters:
swapBytes – bool
swapBytes
specifies if the byte ordering for multibyte components is reversed. The default value isfalse
. Corresponds toGL_UNPACK_SWAP_BYTES
.See also
- PySide2.QtGui.QOpenGLPixelTransferOptions.skipImages()¶
- Return type:
int
Returns the number of images that are skipped.
See also
- PySide2.QtGui.QOpenGLPixelTransferOptions.skipPixels()¶
- Return type:
int
Returns the number of pixels that are skipped.
See also
- PySide2.QtGui.QOpenGLPixelTransferOptions.skipRows()¶
- Return type:
int
Returns the number of rows that are skipped.
See also
- PySide2.QtGui.QOpenGLPixelTransferOptions.swap(other)¶
- Parameters:
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.