CmykColor Class

Summary: The CMYK color of pixel.

Module: aspose.psd

Full Name: aspose.psd.CmykColor

Aspose.PSD Version: 24.9.0

Constructors

NameDescription
CmykColor()Initializes a new instance of the CmykColor class

Properties

NameTypeAccessDescription
cbyterGets the cyan component value of this Color structure.
empty [static]CmykColorrGets the empty.
is_emptyboolrGets a value indicating whether this Color structure is uninitialized.
kbyterGets the black component value of this Color structure.
mbyterGets the magenta component value of this Color structure.
ybyterGets the yellow component value of this Color structure.

Methods

NameDescription
from_params(cyan, magenta, yellow, black)Creates a CmykColor structure from a 32-bit cyan, magenta, yellow and black values.
This method is deprecated. Please use more effective CmykColorHelper.from_components(cyan, magenta, yellow, black).
to_argb32(cmyk_pixels)The conversion from CMYKColor to 32-bit ARGB Color using icc conversion with default profiles.
This method is deprecated. Please use more effective CmykColorHelper.to_argb32(cmyk_pixels).
to_cmyk(argb_pixel)The conversion from 32-bit ARGB color to CMYKColor.
This method is deprecated. Please use more effective CmykColorHelper.to_cmyk(argb_pixels).
to_cmyk(argb_pixels)The conversion from 32-bit ARGB color to CMYKColor.
This method is deprecated. Please use more effective CmykColorHelper.to_cmyk(argb_pixels).
to_color(cmyk_pixel)The conversion from CMYKColor to Color using icc conversion with default profiles.
This method is deprecated. Please use more effective CmykColorHelper.to_argb(cmyk_pixels).
to_color(cmyk_pixels)The conversion from CMYKColor to Color using icc conversion with default profiles.
This method is deprecated. Please use more effective CmykColorHelper.to_argb(cmyk_pixels).
to_color_icc(cmyk_pixel)The conversion from CMYKColor to Color using icc conversion with default profiles.
This method is deprecated. Please use more effective CmykColorHelper.to_argb_icc(cmyk_pixels).
to_color_icc(cmyk_pixel, cmyk_icc_stream, rgb_icc_stream)The conversion from CMYKColor to Color using icc conversion.
This method is deprecated. Please use more effective Aspose.PSD.CmykColorHelper.ToArgbIcc(int[],_io.BufferedRandom,_io.BufferedRandom).
to_color_icc(cmyk_pixels)The conversion from CMYKColor to Color using icc conversion with default profiles.
This method is deprecated. Please use more effective CmykColorHelper.to_argb_icc(cmyk_pixels).
to_color_icc(cmyk_pixels, cmyk_icc_stream, rgb_icc_stream)The conversion from CMYKColor to Color using icc conversion.
This method is deprecated. Please use more effective Aspose.PSD.CmykColorHelper.ToArgbIcc(int[],_io.BufferedRandom,_io.BufferedRandom).
to_value()The to value.

Constructor: CmykColor()

 CmykColor() 

Initializes a new instance of the CmykColor class

Method: from_params(cyan, magenta, yellow, black) [static]

 from_params(cyan, magenta, yellow, black) 

Creates a CmykColor structure from a 32-bit cyan, magenta, yellow and black values.
This method is deprecated. Please use more effective CmykColorHelper.from_components(cyan, magenta, yellow, black).

Parameters:

ParameterTypeDescription
cyanintThe cyan component. Valid values are 0 through 255.
magentaintThe magenta component. Valid values are 0 through 255.
yellowintThe yellow component. Valid values are 0 through 255.
blackintThe black component. Valid values are 0 through 255.

Returns

TypeDescription
CmykColorThe CmykColor.

Method: to_argb32(cmyk_pixels) [static]

 to_argb32(cmyk_pixels) 

The conversion from CMYKColor to 32-bit ARGB Color using icc conversion with default profiles.
This method is deprecated. Please use more effective CmykColorHelper.to_argb32(cmyk_pixels).

Parameters:

ParameterTypeDescription
cmyk_pixelsCmykColor[]The pixels of CMYKColor type in CMYK format.

Returns

TypeDescription
intThe array of the 32-bit ARGB color.

Method: to_cmyk(argb_pixel) [static]

 to_cmyk(argb_pixel) 

The conversion from 32-bit ARGB color to CMYKColor.
This method is deprecated. Please use more effective CmykColorHelper.to_cmyk(argb_pixels).

Parameters:

ParameterTypeDescription
argb_pixelint

Returns

TypeDescription
CmykColorThe .

Method: to_cmyk(argb_pixels) [static]

 to_cmyk(argb_pixels) 

The conversion from 32-bit ARGB color to CMYKColor.
This method is deprecated. Please use more effective CmykColorHelper.to_cmyk(argb_pixels).

Parameters:

ParameterTypeDescription
argb_pixelsintThe pixels of 32-bit ARGB format.

Returns

TypeDescription
CmykColor[]The .

Method: to_color(cmyk_pixel) [static]

 to_color(cmyk_pixel) 

The conversion from CMYKColor to Color using icc conversion with default profiles.
This method is deprecated. Please use more effective CmykColorHelper.to_argb(cmyk_pixels).

Parameters:

ParameterTypeDescription
cmyk_pixelCmykColor

Returns

TypeDescription
ColorThe array of the ARGB colors.

Method: to_color(cmyk_pixels) [static]

 to_color(cmyk_pixels) 

The conversion from CMYKColor to Color using icc conversion with default profiles.
This method is deprecated. Please use more effective CmykColorHelper.to_argb(cmyk_pixels).

Parameters:

ParameterTypeDescription
cmyk_pixelsCmykColor[]The pixels of CMYKColor type in CMYK format.

Returns

TypeDescription
Color[]The array of the ARGB colors.

Method: to_color_icc(cmyk_pixel) [static]

 to_color_icc(cmyk_pixel) 

The conversion from CMYKColor to Color using icc conversion with default profiles.
This method is deprecated. Please use more effective CmykColorHelper.to_argb_icc(cmyk_pixels).

Parameters:

ParameterTypeDescription
cmyk_pixelCmykColor

Returns

TypeDescription
ColorThe Color[].

Method: to_color_icc(cmyk_pixel, cmyk_icc_stream, rgb_icc_stream) [static]

 to_color_icc(cmyk_pixel, cmyk_icc_stream, rgb_icc_stream) 

The conversion from CMYKColor to Color using icc conversion.
This method is deprecated. Please use more effective Aspose.PSD.CmykColorHelper.ToArgbIcc(int[],_io.BufferedRandom,_io.BufferedRandom).

Parameters:

ParameterTypeDescription
cmyk_pixelCmykColor
cmyk_icc_stream_io.BufferedRandomThe stream containing icc cmyk profile.
rgb_icc_stream_io.BufferedRandomThe stream containing icc rgb profile.

Returns

TypeDescription
ColorThe Color[].

Method: to_color_icc(cmyk_pixels) [static]

 to_color_icc(cmyk_pixels) 

The conversion from CMYKColor to Color using icc conversion with default profiles.
This method is deprecated. Please use more effective CmykColorHelper.to_argb_icc(cmyk_pixels).

Parameters:

ParameterTypeDescription
cmyk_pixelsCmykColor[]The pixels of CMYKColor type in CMYK format.

Returns

TypeDescription
Color[]The Color[].

Method: to_color_icc(cmyk_pixels, cmyk_icc_stream, rgb_icc_stream) [static]

 to_color_icc(cmyk_pixels, cmyk_icc_stream, rgb_icc_stream) 

The conversion from CMYKColor to Color using icc conversion.
This method is deprecated. Please use more effective Aspose.PSD.CmykColorHelper.ToArgbIcc(int[],_io.BufferedRandom,_io.BufferedRandom).

Parameters:

ParameterTypeDescription
cmyk_pixelsCmykColor[]The pixels of CMYKColor type in CMYK format.
cmyk_icc_stream_io.BufferedRandomThe stream containing icc cmyk profile.
rgb_icc_stream_io.BufferedRandomThe stream containing icc rgb profile.

Returns

TypeDescription
Color[]The Color[].

Method: to_value()

 to_value() 

The to value.

Returns

TypeDescription
longThe int.