QColorSpace:: QColorSpace()Ĭreates a new colorspace object that represents an undefined and invalid colorspace. QColorSpace:: QColorSpace( QColorSpace::NamedColorSpace namedColorSpace)Ĭreates a new colorspace object that represents a namedColorSpace. ![]() QColorSpace:: QColorSpace( QColorSpace::Primaries primaries, QColorSpace::TransferFunction transferFunction, float gamma = 0.0f)Ĭreates a custom color space with the primaries primaries, using the transfer function transferFunction and optionally gamma. QColorSpace:: QColorSpace( QColorSpace::Primaries primaries, float gamma)Ĭreates a custom color space with the primaries primaries, using a gamma transfer function of gamma. Member Function Documentation QColorSpace:: QColorSpace(const QPointF & whitePoint, const QPointF & redPoint, const QPointF & greenPoint, const QPointF & bluePoint, QColorSpace::TransferFunction transferFunction, float gamma = 0.0f)Ĭreates a custom colorspace with a primaries based on the chromaticities of the primary colors whitePoint, redPoint, greenPoint and bluePoint, and using the transfer function transferFunction and optionally gamma. These are used because human perception does not operate linearly, and the transfer functions try to ensure that colors will seem evenly spaced to human eyes. The transfer function or gamma curve determines how each component in the color space is encoded. The range of colors expressable by the primary colors is called the gamut, and a color space that can represent a wider range of colors is also known as a wide-gamut color space. The primaries are defined by three primary colors that represent exactly how red, green, and blue look in this particular color space, and a white color that represents where and how bright pure white is. The primaries defines the axes of the color space, and the transfer function how values are mapped on the axes. QColorSpace can also represent color spaces defined by ICC profiles or embedded in images, that do not otherwise fit the predefined color spaces.Ī color space can generally speaking be conceived as a combination of set of primary colors and a transfer function. QColorSpace provides access to creating several predefined color spaces and can generate QColorTransforms for converting colors from one color space to another. WithTransferFunction(QColorSpace::TransferFunction transferFunction, float gamma = 0.0f) constĬolor values can be interpreted in different ways, and based on the interpretation can live in different spaces. TransformationToColorSpace(const QColorSpace & colorspace) const SetTransferFunction(QColorSpace::TransferFunction transferFunction, float gamma = 0.0f) ![]() SetPrimaries(const QPointF & whitePoint, const QPointF & redPoint, const QPointF & greenPoint, const QPointF & bluePoint) SetPrimaries(QColorSpace::Primaries primariesId) QColorSpace(QColorSpace::NamedColorSpace namedColorSpace) QColorSpace(QColorSpace::Primaries primaries, QColorSpace::TransferFunction transferFunction, float gamma = 0.0f) QColorSpace(QColorSpace::Primaries primaries, float gamma) QColorSpace(const QPointF & whitePoint, const QPointF & redPoint, const QPointF & greenPoint, const QPointF & bluePoint, QColorSpace::TransferFunction transferFunction, float gamma = 0.0f)
0 Comments
Leave a Reply. |