CmykColor Class
Summary: The CMYK color of pixel.
Module: aspose.psd
Full Name: aspose.psd.CmykColor
Aspose.PSD Version: 24.9.0
Constructors
Name | Description |
---|---|
CmykColor() | Initializes a new instance of the CmykColor class |
Properties
Name | Type | Access | Description |
---|---|---|---|
c | byte | r | Gets the cyan component value of this Color structure. |
empty [static] | CmykColor | r | Gets the empty. |
is_empty | bool | r | Gets a value indicating whether this Color structure is uninitialized. |
k | byte | r | Gets the black component value of this Color structure. |
m | byte | r | Gets the magenta component value of this Color structure. |
y | byte | r | Gets the yellow component value of this Color structure. |
Methods
Name | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
cyan | int | The cyan component. Valid values are 0 through 255. |
magenta | int | The magenta component. Valid values are 0 through 255. |
yellow | int | The yellow component. Valid values are 0 through 255. |
black | int | The black component. Valid values are 0 through 255. |
Returns
Type | Description |
---|---|
CmykColor | The 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:
Parameter | Type | Description |
---|---|---|
cmyk_pixels | CmykColor[] | The pixels of CMYKColor type in CMYK format. |
Returns
Type | Description |
---|---|
int | The 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:
Parameter | Type | Description |
---|---|---|
argb_pixel | int |
Returns
Type | Description |
---|---|
CmykColor | The |
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:
Parameter | Type | Description |
---|---|---|
argb_pixels | int | The pixels of 32-bit ARGB format. |
Returns
Type | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
cmyk_pixel | CmykColor |
Returns
Type | Description |
---|---|
Color | The 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:
Parameter | Type | Description |
---|---|---|
cmyk_pixels | CmykColor[] | The pixels of CMYKColor type in CMYK format. |
Returns
Type | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
cmyk_pixel | CmykColor |
Returns
Type | Description |
---|---|
Color | The 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:
Parameter | Type | Description |
---|---|---|
cmyk_pixel | CmykColor | |
cmyk_icc_stream | _io.BufferedRandom | The stream containing icc cmyk profile. |
rgb_icc_stream | _io.BufferedRandom | The stream containing icc rgb profile. |
Returns
Type | Description |
---|---|
Color | The 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:
Parameter | Type | Description |
---|---|---|
cmyk_pixels | CmykColor[] | The pixels of CMYKColor type in CMYK format. |
Returns
Type | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
cmyk_pixels | CmykColor[] | The pixels of CMYKColor type in CMYK format. |
cmyk_icc_stream | _io.BufferedRandom | The stream containing icc cmyk profile. |
rgb_icc_stream | _io.BufferedRandom | The stream containing icc rgb profile. |
Returns
Type | Description |
---|---|
Color[] | The Color[]. |
Method: to_value()
to_value()
The to value.
Returns
Type | Description |
---|---|
long | The int. |