Taxonomy Categories:
Member Functions:
Interface Category:
API.
Inherits From:
TColor
Inherited By:
None.
Purpose:
TCMYKColor derives from TColor. The TCMYKColor class defines a color model of Cyan, Magenta, Yellow, and Black. The CMYK primaries, which are subtractive, are used for most color hard-copy devices. Most hard-copy devices deposit colored pigments onto paper. When a surface is coated with cyan ink, for example, no red light is reflected. Cyan subtracts red light from reflected white light. The CMYK values are calculated by first determining CMY values present in a color. The amount of black present in the color is determined by the relationship K =minimum(C,M,Y). K is then subtracted from CMY values to define the CMYK values. This technique, called under-color removal, enables hard-copy color devices to increase output quality by printing with four instead of three colors. Values of the primaries should be constrained to the range between 0.0 and 1.0, inclusive. Member functions are provided to clamp the CMYK primaries to this range. The CMYK color model is uncalibrated; therefore, CMYK colors must be defined with respect to a particular color device through a color profile.
The class provides arithmetic operators that operate on two colors.
Instantiation:
Allocate on the heap or the stack.
Deriving Classes:
Derive new color models from TColor.
Concurrency:
Multithread safe.
Resource Use:
No special requirements.
- TCMYKColor ()
- TCMYKColor (const TColor & aColor)
- TCMYKColor (TColorProfile * theDeviceColorProfile)
- TCMYKColor (GIntensity aCyan, GIntensity aMagenta, GIntensity aYellow, GIntensity aBlack, GIntensity opacity =1.0)
- TCMYKColor (const TCMYKColor & aCMYKColor)
- TCMYKColor (TColorProfile * theDeviceColorProfile, GIntensity aCyan, GIntensity aMagenta, GIntensity aYellow, GIntensity aBlack, GIntensity opacity =1.0)
Interface Category:
API.
Purpose:
- Default constructor; it has the default color profile, and color components are not initialized.
- Creates a TCMYKColor from a TColor.
- Creates a TCMYKColor with the specified color profile. The color components are not initialized.
- Creates a TCMYKColor with the specified components. It has the default color profile.
- Copy constructor.
- Creates a TCMYKColor with the specified components and color profile.
Calling Context:
- Called by the stream-in operators. You can also call this function directly.
- Call this function directly.
- Call this function directly.
- Call this function directly.
- Called to copy an object. You can also call this function directly.
- Call this function directly.
Parameters:
- Takes no parameters.
- const TColor & aColor -The color to be copied.
- TColorProfile * theDeviceColorProfile -The color profile for the new color.
- GIntensity aCyan -The cyan component of the new color.
- GIntensity aMagenta -The magenta component of the new color.
- GIntensity aYellow -The yellow component of the new color.
- GIntensity aBlack -The black component of the new color.
- GIntensity opacity =1.0 -The opacity of the new color.
- const TCMYKColor & aCMYKColor -The color to be copied.
- TColorProfile * theDeviceColorProfile -The color profile for the new color.
- GIntensity aCyan -The cyan component of the new color.
- GIntensity aMagenta -The magenta component of the new color.
- GIntensity aYellow -The yellow component of the new color.
- GIntensity aBlack -The black component of the new color.
- GIntensity opacity =1.0 -The opacity of the new color.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Member Function: TCMYKColor::GetComponents
void GetComponents (GIntensity & aCyan, GIntensity & aMagenta, GIntensity & aYellow, GIntensity & aBlack, GIntensity & opacity) const
Interface Category:
API.
Purpose:
Gets the components of this TCMYKColor.
Calling Context:
Call this function directly.
Parameters:
- GIntensity & aCyan -The cyan component of the color.
- GIntensity & aMagenta -The magenta component of the color.
- GIntensity & aYellow -The yellow component of the color.
- GIntensity & aBlack -The black component of the color.
- GIntensity & opacity -The opacity of the color.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TCMYKColor::GetClampedComponents
void GetClampedComponents (GIntensity & aCyan, GIntensity & aMagenta, GIntensity & aYellow, GIntensity & aBlack, GIntensity & opacity) const
Interface Category:
API.
Purpose:
Gets the components of this TCMYKColor clamped between 0.0 <= N <=1.0.
Calling Context:
Call this function directly.
Parameters:
- GIntensity & aCyan -The clamped cyan component of this color.
- GIntensity & aMagenta -The clamped magenta component of this color.
- GIntensity & aYellow -The clamped yellow component of this color.
- GIntensity & aBlack -The clamped black component of this color.
- GIntensity & opacity- The clamped opacity of this color.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TCMYKColor::GetCyan
GIntensity GetCyan () const
Interface Category:
API.
Purpose:
Gets the cyan component of this TCMYKColor.
Calling Context:
Call this function directly.
Parameters:
Return Value:
Returns the cyan component of the color.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TCMYKColor::GetMagenta
GIntensity GetMagenta () const
Interface Category:
API.
Purpose:
Gets the magenta component of this TCMYKColor.
Calling Context:
Call this function directly.
Parameters:
Return Value:
Returns the magenta component of the color.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TCMYKColor::GetYellow
GIntensity GetYellow () const
Interface Category:
API.
Purpose:
Gets the yellow component of this TCMYKColor.
Calling Context:
Call this function directly.
Parameters:
Return Value:
Returns the yellow component of the color.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TCMYKColor::GetBlack
GIntensity GetBlack () const
Interface Category:
API.
Purpose:
Gets the black component of this TCMYKColor.
Calling Context:
Call this function directly.
Parameters:
Return Value:
Returns the black component of the color.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TCMYKColor::GetColorDifference
GCoordinate GetColorDifference (const TCMYKColor & aColor2) const
Interface Category:
API.
Purpose:
Calculates the color difference between this TCMYKColor and the specified one. The color difference is defined as the sqrt( (cyan1-cyan2)^2+(magenta1-magenta2)^2+(yellow1-yellow2)^2+ (black1-black2)^2 ).
Calling Context:
Call this function directly.
Parameters:
- const TCMYKColor & aColor2 -The color with which the difference is computed.
Return Value:
The value of the color difference between the two colors.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TCMYKColor::SetComponents
void SetComponents (GIntensity aCyan, GIntensity aMagenta, GIntensity aYellow, GIntensity aBlack, GIntensity opacity =1.0)
Interface Category:
API.
Purpose:
Sets the components of this TCMYKColor to the specified values.
Calling Context:
Call this function directly.
Parameters:
- GIntensity aCyan -The new value for the cyan component.
- GIntensity aMagenta -The new value for the magenta component.
- GIntensity aYellow -The new value for the yellow component.
- GIntensity aBlack -The new value for the black component.
- GIntensity opacity =1.0 -The new value for the opacity.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TCMYKColor::SetMagenta
void SetMagenta (GIntensity aMagenta)
Interface Category:
API.
Purpose:
Sets the magenta component of this TCMYKColor.
Calling Context:
Call this function directly.
Parameters:
- GIntensity aMagenta -The new value for the magenta component.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TCMYKColor::SetYellow
void SetYellow (GIntensity aYellow)
Interface Category:
API.
Purpose:
Sets the yellow component of this TCMYKColor.
Calling Context:
Call this function directly.
Parameters:
- GIntensity aYellow -The new value for the yellow component.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TCMYKColor::SetBlack
void SetBlack (GIntensity aBlack)
Interface Category:
API.
Purpose:
Sets the black component of this TCMYKColor.
Calling Context:
Call this function directly.
Parameters:
- GIntensity aBlack -The new value for the black component.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TCMYKColor::operatorTRGBColor
virtual operator TRGBColor () const
Interface Category:
API.
Purpose:
Casts this TCMYKColor to a TRGBColor.
Calling Context:
Call this operator directly.
Parameters:
Return Value:
Returns an TRGBColor that corresponds to this color.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TCMYKColor::operatorTXYZColor
virtual operator TXYZColor () const
Interface Category:
API.
Purpose:
Casts this TCMYKColor to a TXYZColor.
Calling Context:
Call this operator directly.
Parameters:
Return Value:
Returns an XYZColor that corresponds to this color.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TCMYKColor::operator=
- TCMYKColor & operator =(const TCMYKColor & aSource)
- TColor & operator =(const TColor & aSource)
Interface Category:
API.
Purpose:
- Assignment operator.
- Assignment operator that casts the specified operand to a TCMYKColor.
Calling Context:
- Called when an object is assigned to another compatible object.
- Called when an object is assigned to another compatible object.
Parameters:
- const TCMYKColor & aSource -The color to be copied.
- const TColor & aSource -The color to be converted and copied.
Return Value:
A non-const reference to the left-hand side object.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TCMYKColor::operator+
- TCMYKColor operator + (const TCMYKColor & aColor2) const
- TCMYKColor operator + (const float aScalar) const
Interface Category:
API.
Purpose:
- Adds the components of the two TCMYKColors together.
- Adds the specified scalar to each component of this TCMYKColor.
Calling Context:
- Call this operator directly.
- Call this operator directly.
Parameters:
- const TCMYKColor & aColor2 -The color to be added to this one.
- const float aScalar -The scalar to be added to each component of this color.
Return Value:
- Returns a new color with the new components.
- Returns a new color with the new components.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
The values of the components are not clamped to the range 0.0 <= N <= 1.0.
Member Function: TCMYKColor::operator-
- TCMYKColor operator -(const TCMYKColor & aColor2) const
- TCMYKColor operator -(const float aScalar) const
Interface Category:
API.
Purpose:
- Subtracts the components of the specified color from this TCMYKColor.
- Subtracts the specified scalar from each component of this TCMYKColor.
Calling Context:
- Call this operator directly.
- Call this operator directly.
Parameters:
- const TCMYKColor & aColor2 -The subtrahend.
- const float aScalar -The subtrahend.
Return Value:
- Returns a new color with the new components.
- Returns a new color with the new components.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
The values of the components are not clamped to the range 0.0 <= N <= 1.0.
Member Function: TCMYKColor::operator*
- TCMYKColor operator * (const float aScalar) const
- TCMYKColor operator * (const TCMYKColor & aColor2) const
Interface Category:
API.
Purpose:
- Multiplies each component of this TCMYKColor by the specified scalar.
- Multiplies the components of this TCMYKColor by the components of the specified color.
Calling Context:
- Call this operator directly.
- Call this operator directly.
Parameters:
- const float aScalar -The multiplier.
- const TCMYKColor & aColor2 -The multiplier.
Return Value:
- Returns a new color with the new components.
- Returns a new color with the new components.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
The values of the components are not clamped to the range 0.0 <= N <= 1.0.
Member Function: TCMYKColor::operator/=
TCMYKColor & operator /= (const float aScalar)
Interface Category:
API.
Purpose:
Divides the components of this TCMYKColor by the specified scalar and assigns the new values to the respective components.
Calling Context:
Call this operator directly.
Parameters:
- const float aScalar -The divisor.
Return Value:
Returns this color with the new components.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
The color's opacity is set to 1.0.
Member Function: TCMYKColor::operator+=
- TCMYKColor & operator += (const float aScalar)
- TCMYKColor & operator += (const TCMYKColor & aColor2)
Interface Category:
API.
Purpose:
- Adds the specified scalar to the components of this TCMYKColor and assigns the new values to the respective components.
- Adds the specified colors to the components of this TCMYKColor and assigns the new values to the respective components.
Calling Context:
- Call this operator directly.
- Call this operator directly.
Parameters:
- const float aScalar -The number to be added to this color.
- const TCMYKColor & aColor2 -The number to be added to this color.
Return Value:
Throws no exceptions, passes all exceptions through.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
The color's opacity is set to 1.0.
Member Function: TCMYKColor::operator-=
- TCMYKColor & operator -=(const float aScalar)
- TCMYKColor & operator -=(const TCMYKColor & aColor2)
Interface Category:
API.
Purpose:
- Subtracts the specified scalar from the components of this TCMYKColor and assigns the new values to the respective components.
- Subtracts the specified scalar from the components of this TCMYKColor and assigns the new values to the respective components.
Calling Context:
- Call this operator directly.
- Call this operator directly.
Parameters:
- const float aScalar -The subtrahend.
- const TCMYKColor & aColor2 -The subtrahend.
Return Value:
Returns this color with the new components.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
The color's opacity is set to 1.0.
Member Function: TCMYKColor::operator*=
TCMYKColor & operator *= (const float aScalar)
Interface Category:
API.
Purpose:
Multiplies the components of this TCMYKColor by the specified scalar and assigns the new values to the respective components.
Calling Context:
Call this operator directly.
Parameters:
- const float aScalar -The multiplier.
Return Value:
Returns this color with the new components.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
The color's opacity is set to 1.0.
Member Function: TCMYKColor::operator/
TCMYKColor operator / (const float aScalar) const
Interface Category:
API.
Purpose:
Divides each component of this TCMYKColor by the specified scalar.
Calling Context:
Call this operator directly.
Parameters:
- const float aScalar -The divisor.
Return Value:
Returns this color with the new components.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TCMYKColor::FuzzyCompare
- bool FuzzyCompare (const TCMYKColor & aCMYKColor, float acceptableErrorPerComponent =0.0001) const
- bool FuzzyCompare (const TCMYKColor & aCMYKColor, float errOpacity, float errCyan, float errMagenta, float errYellow, float errBlack) const
Interface Category:
API.
Purpose:
- Compares this TCMYKColor and the specified color with reference to the specified tolerance. It takes the absolute difference between the components of the color and compares them to a known value.
- Compares this TCMYKColor and the specified color to a given accuracy on a component by component level.
Calling Context:
- Call this function directly.
- Call this function directly.
Parameters:
- const TCMYKColor & aCMYKColor -The color that is compared to this color.
- float acceptableErrorPerComponent =0.0001 -The tolerance with which the two colors are compared.
- const TCMYKColor & aCMYKColor -The color that is compared to this color.
- float errOpacity -The tolerance with which the opacities of the two colors are compared.
- float errCyan -The tolerance with which the cyan components of the two colors are compared.
- float errMagenta -The tolerance with which the magenta components of the two colors are compared.
- float errYellow -The tolerance with which the yellow components of the two colors are compared.
- float errBlack -The tolerance with which the black components of the two colors are compared.
Return Value:
- Returns true if the two colors are equal with reference to the specified tolerance.
- Returns true if the two colors are equal with reference to the specified tolerance.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TCMYKColor::LinearInterpolate
void LinearInterpolate (const float aWeight, const TCMYKColor & aColor2)
Interface Category:
API.
Purpose:
Makes a weighted linear interpolation of each component of this TCMYColor. The interpolation is returned in this color.
The interpolation that is done for each component is (using cyan as an example) given by cyan1 =cyan1 + (cyan2 -cyan1) * Weight.
Calling Context:
Call this function directly.
Parameters:
- const float aWeight -The weight to use.
- const TCMYKColor & aColor2 -The color to be interpolated with this one.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
The color's opacity is set to 1.0.
Member Function: TCMYKColor::AddAndPin
void AddAndPin (const TCMYKColor & aColor2)
Interface Category:
API.
Purpose:
Adds the specified color to this TCMYKColor and then clamps the resulting values of the components.
Calling Context:
Call this function directly.
Parameters:
- const TCMYKColor & aColor2 -The color to be added to this one.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
The color's opacity is set to 1.0.
Member Function: TCMYKColor::SubtractAndPin
void SubtractAndPin (const TCMYKColor & aColor2)
Interface Category:
API.
Purpose:
Subtracts the specified color from this TCMYKColor and then clamps the resulting values of the components.
Calling Context:
Call this function directly.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
The color's opacity is set to 1.0.
Member Function: TCMYKColor::Maximum
void Maximum (const TCMYKColor & aColor2)
Interface Category:
API.
Purpose:
Determines the maximum of individual components of this TCMYKColor and the specified color. It sets the components of this color to the resulting maximum values.
Calling Context:
Call this function directly.
Parameters:
- const TCMYKColor & aColor2 -The color whose components are compared with this one.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
The color's opacity is set to 1.0.
Member Function: TCMYKColor::Minimum
void Minimum (const TCMYKColor & aColor2)
Interface Category:
API.
Purpose:
Determines the minimum of individual components of this TCMYKColor and the specified color. It sets the components of this color to the resulting minimum values.
Calling Context:
Call this function directly.
Parameters:
- const TCMYKColor & aColor2 -The color whose components are compared with this one.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
The color's opacity is set to 1.0.
Member Function: TCMYKColor::Blend
void Blend (const TCMYKColor & aColor2)
Interface Category:
API.
Purpose:
Averages the individual components of the two colors and returns them in this TCMYKColor.
Calling Context:
Call this function directly.
Parameters:
- const TCMYKColor & aColor2 -The color to be blended with this one.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
The color's opacity is set to 1.0.
Member Function: TCMYKColor::Invert
void Invert ()
Interface Category:
API.
Purpose:
Inverts this TCMYKColor.
Calling Context:
Call this function directly.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
The color's opacity is set to 1.0.
Member Function: TCMYKColor::Clamp
void Clamp ()
Interface Category:
API.
Purpose:
Clamps the components of this TCMYKColor between 0.0 <= N <= 1.0. If a value is less than 0.0, it is set to 0.0, and if it is greater than 1.0, it is set to 1.0.
Calling Context:
Call this function directly.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
The color's opacity is set to 1.0.
Member Function: TCMYKColor::Scale
void Scale ()
Interface Category:
API.
Purpose:
Scales this TCMYKColor to 1.0. If all of the color's components are between 0.0 <= N <= 1.0, the color is untouched. If there are components with values greater than 1.0, then the largest component is used to renormalize the color.
If any of the color's components are less than 0.0, they set to 0.0.
Calling Context:
Call this function directly.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
The color's opacity is set to 1.0.
Member Function: TCMYKColor::TemporaryTypeID
virtual TemporaryColorClassID TemporaryTypeID () const
Interface Category:
API.
Purpose:
Returns TColor::kCMYKcolor.
Calling Context:
Call this function directly.
Parameters:
Return Value:
Returns TColor::kCMYKcolor.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TCMYKColor::operator<<=
virtual TStream & operator <<= (TStream &)
Interface Category:
API.
Purpose:
Stream-in operator.
Calling Context:
Called to stream in data.
Parameters:
- TStream & -The stream that the object's data is streamed in from.
Return Value:
Returns a reference to the stream the object streams itself in from.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TCMYKColor::operator>>=
virtual TStream & operator >>=(TStream &) const
Interface Category:
API.
Purpose:
Stream-out operator.
Calling Context:
Called to stream out data.
Parameters:
- TStream & -The stream that the object's data is streamed out to.
Return Value:
Returns a reference to the stream the object streams itself out to.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
virtual ~ TCMYKColor ()
Interface Category:
API.
Purpose:
Destructor.
Calling Context:
Called to destroy an object.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TCMYKColor::ClampOpacity
void ClampOpacity ()
Interface Category:
API.
Purpose:
Pins the opacity of this TCMYKColor to the range 0.0 to 1.0.
Calling Context:
Call this function directly.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TCMYKColor::SetOpacity
void SetOpacity (GIntensity opacity =1.0)
Interface Category:
API.
Purpose:
Sets the opacity of this TCMYKColor to the specified value.
Calling Context:
Call this function directly.
Parameters:
- GIntensity opacity =1.0 -The new value for the opacity.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TCMYKColor::GetClampedOpacity
GIntensity GetClampedOpacity () const
Interface Category:
API.
Purpose:
Returns the opacity of this TCMYKColor and pins the value to the range 0.0 to 1.0.
Calling Context:
Call this function directly.
Parameters:
Return Value:
The clamped opacity.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TCMYKColor::GetOpacity
GIntensity GetOpacity () const
Interface Category:
API.
Purpose:
Returns the opacity of this TCMYKColor.
Calling Context:
Call this function directly.
Parameters:
Return Value:
The opacity that can be outside the range 0.0 to 1.0.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TCMYKColor::SetCyan
void SetCyan (GIntensity aCyan)
Interface Category:
API.
Purpose:
Sets the cyan component of this TCMYKColor.
Calling Context:
Call this function directly.
Parameters:
- GIntensity aCyan -The new value for the cyan component.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.