PySide6.QtOpenGL.QOpenGLPixelTransferOptions¶
- class QOpenGLPixelTransferOptions¶
- The - QOpenGLPixelTransferOptionsclass describes the pixel storage modes that affect the unpacking of pixels during texture upload.- Synopsis¶- Methods¶- def - __init__()
- def - alignment()
- def - imageHeight()
- def - rowLength()
- def - setAlignment()
- def - setImageHeight()
- def - setRowLength()
- def - setSkipImages()
- def - setSkipPixels()
- def - setSkipRows()
- def - skipImages()
- def - skipPixels()
- def - skipRows()
- def - swap()
 - Note - This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE - __init__()¶
 - Constructs a new - QOpenGLPixelTransferOptionsinstance with the default settings.- __init__(arg__1)
- Parameters:
- arg__1 – - QOpenGLPixelTransferOptions
 
 - alignment()¶
- Return type:
- int 
 
 - Returns the current alignment requirement for each pixel row. - See also - imageHeight()¶
- Return type:
- int 
 
 - Returns the currently set image height. - See also - isLeastSignificantBitFirst()¶
- Return type:
- bool 
 
 - Returns - trueif bits within a byte are ordered from least to most significant.- isSwapBytesEnabled()¶
- Return type:
- bool 
 
 - Returns - trueif the byte ordering for multibyte components is reversed.- rowLength()¶
- Return type:
- int 
 
 - Returns the currently set row length. - See also - setAlignment(alignment)¶
- Parameters:
- alignment – int 
 
 - Sets the - alignmentrequirements for each pixel row. Corresponds to- GL_UNPACK_ALIGNMENT. The default value is 4, as specified by OpenGL.- See also - setImageHeight(imageHeight)¶
- Parameters:
- imageHeight – int 
 
 - Sets the image height for 3D textures to - imageHeight. Corresponds to- GL_UNPACK_IMAGE_HEIGHT. The default value is 0.- See also - setLeastSignificantByteFirst(lsbFirst)¶
- Parameters:
- lsbFirst – bool 
 
 - lsbFirstspecifies 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 to- GL_UNPACK_LSB_FIRST.- setRowLength(rowLength)¶
- Parameters:
- rowLength – 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(skipImages)¶
- Parameters:
- skipImages – 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(skipPixels)¶
- Parameters:
- skipPixels – 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(skipRows)¶
- Parameters:
- skipRows – 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(swapBytes)¶
- Parameters:
- swapBytes – bool 
 
 - swapBytesspecifies if the byte ordering for multibyte components is reversed. The default value is- false. Corresponds to- GL_UNPACK_SWAP_BYTES.- See also - skipImages()¶
- Return type:
- int 
 
 - Returns the number of images that are skipped. - See also - skipPixels()¶
- Return type:
- int 
 
 - Returns the number of pixels that are skipped. - See also - skipRows()¶
- Return type:
- int 
 
 - Returns the number of rows that are skipped. - See also - swap(other)¶
- Parameters:
- other – - QOpenGLPixelTransferOptions
 
 - Swaps this options with - other. This operation is very fast and never fails.