1 person found this helpful
thanks Harbs, it works good.
But, one more thing, how to get CMYK from this color picker .It gives numeric value for our every color picking. My need is to get its CMYK or RGB Value.
while selecting "C=78, M=29, Y=59, K=27" on colorpicker it calling method returns value "2447174".
From the tools guide:
Invokes the platform-specific color selection dialog, and returns the selected color as a
hexadecimal RGB value: 0xRRGGBB.
name: The color to be preselected in the dialog, as a hexadecimal RGB value
(0xRRGGBB), or -1 for the platform default.
I wrote a similar ColorPicker Script sample in the past, too.
- create document
- create rectangle object
- show ColorPicker
- choose color with ColorPicker
- create RGB color swatch
- (convert to CMYK color swatch)
- coloring rectangle object to this swatch