Functions

qAlpha(rgb)
Parameters:

rgb – int

Return type:

int

qBlue(rgb)
Parameters:

rgb – int

Return type:

int

qGray(rgb)
Parameters:

rgb – int

Return type:

int

qGray(r, g, b)
Parameters:
  • r – int

  • g – int

  • b – int

Return type:

int

qGreen(rgb)
Parameters:

rgb – int

Return type:

int

qIsGray(rgb)
Parameters:

rgb – int

Return type:

bool

qPixelFormatAlpha(channelSize[, typeInt=QPixelFormat.UnsignedInteger])
Parameters:
Return type:

QPixelFormat

Constructor function for creating an Alpha format. A mask format can be described by passing 1 to channelSize. Its also possible to define very accurate alpha formats using doubles to describe each pixel by passing 8 as channelSize and FloatingPoint as typeInterpretation.

qPixelFormatCmyk(channelSize[, alfa=0[, usage=QPixelFormat.IgnoresAlpha[, position=QPixelFormat.AtBeginning[, typeInt=QPixelFormat.UnsignedInteger]]]])
Parameters:
Return type:

QPixelFormat

Constructor function for creating CMYK formats. The channel count will be 4 or 5 depending on if alphaSize is bigger than zero or not. The CMYK color channels will all be set to the value of channelSize.

alphaUsage alphaPosition and typeInterpretation are all accessible with the accessors with the same name.

qPixelFormatGrayscale(channelSize[, typeInt=QPixelFormat.UnsignedInteger])
Parameters:
Return type:

QPixelFormat

Constructor function for creating a Grayscale format. Monochrome formats can be described by passing 1 to channelSize. Its also possible to define very accurate grayscale formats using doubles to describe each pixel by passing 8 as channelSize and FloatingPoint as typeInterpretation.

qPixelFormatHsl(channelSize[, alfa=0[, usage=QPixelFormat.IgnoresAlpha[, position=QPixelFormat.AtBeginning[, typeInt=QPixelFormat.FloatingPoint]]]])
Parameters:
Return type:

QPixelFormat

Constructor function for creating HSL formats. The channel count will be 3 or 4 depending on if alphaSize is bigger than 0.

channelSize will set the hueSize() saturationSize() and lightnessSize() to the same value.

alphaUsage alphaPosition and typeInterpretation are all accessible with the accessors with the same name.

qPixelFormatHsv(channelSize[, alfa=0[, usage=QPixelFormat.IgnoresAlpha[, position=QPixelFormat.AtBeginning[, typeInt=QPixelFormat.FloatingPoint]]]])
Parameters:
Return type:

QPixelFormat

Constructor function for creating HSV formats. The channel count will be 3 or 4 depending on if alphaSize is bigger than 0.

channelSize will set the hueSize() saturationSize() and brightnessSize() to the same value.

alphaUsage alphaPosition and typeInterpretation are all accessible with the accessors with the same name.

qPixelFormatRgba(red, green, blue, alfa, usage, position[, pmul=QPixelFormat.NotPremultiplied[, typeInt=QPixelFormat.UnsignedInteger]])
Parameters:
Return type:

QPixelFormat

Constructor function making an RGB pixelformat. redSize greenSize blueSize represent the size of each color channel. alphaSize describes the alpha channel size and its position is described with alphaPosition. alphaUsage is used to determine if the alpha channel is used or not. Setting the alpha channel size to 8 and alphaUsage() to IgnoresAlpha is how it is possible to create a 32 bit format where the rgb channels only use 24 bits combined. premultiplied typeInterpretation are accessible with accessors with the same name.

qPixelFormatYuv(layout[, alfa=0[, usage=QPixelFormat.IgnoresAlpha[, position=QPixelFormat.AtBeginning[, p_mul=QPixelFormat.NotPremultiplied[, typeInt=QPixelFormat.UnsignedByte[, b_order=QPixelFormat.LittleEndian]]]]]])
Parameters:
Return type:

QPixelFormat

Constructor function for creating a QPixelFormat describing a YUV format with yuvLayout. alphaSize describes the size of a potential alpha channel and is position is described with alphaPosition. The “first” “second” .. “fifth” channels are all set to 0. alphaUsage premultiplied typeInterpretation and byteOrder will work as with other formats.

qRed(rgb)
Parameters:

rgb – int

Return type:

int

qRgb(r, g, b)
Parameters:
  • r – int

  • g – int

  • b – int

Return type:

int

qRgba(r, g, b, a)
Parameters:
  • r – int

  • g – int

  • b – int

  • a – int

Return type:

int

qFuzzyCompare(arg__1, arg__2)
Parameters:
Return type:

bool

qFuzzyCompare(arg__1, arg__2)
Parameters:
Return type:

bool

qFuzzyCompare(arg__1, arg__2)
Parameters:
Return type:

bool

qFuzzyCompare(arg__1, arg__2)
Parameters:
Return type:

bool

qFuzzyCompare(arg__1, arg__2)
Parameters:
Return type:

bool

qFuzzyCompare(arg__1, arg__2)
Parameters:
Return type:

bool