Get colours from colour palette
Moderator: Kathy_9
-
Nok
- Posts: 13
- Joined: Mon Mar 17, 2014 9:12 am
- System_Drive: C
- 32bit or 64bit: 64 Bit
- processor: Intel Core i5
- Hard_Drive_Capacity: 220G
- Monitor/Display Make & Model: Samsung 17inch
- Contact:
Get colours from colour palette
I have coded a script that asks the user to select a couple of colours. I want to change the script such that the user has an option of selecting colours or using colours from a colour palette. I tried using the ReturnImageInfo command 's PaletteColorList but its was not being populated. Is there a command I can use to do this? I was using the attached image as a colour palette.
- Attachments
-
- Pear Tints.jpg (1.74 KiB) Viewed 1707 times
-
LeviFiction
- Advisor
- Posts: 6831
- Joined: Thu Oct 02, 2008 1:07 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: Alienware M17xR4
- processor: Intel Core i7-3630QM CPU - 2_40GH
- ram: 6 GB
- Video Card: NVIDIA GeForce GTX 660M
- sound_card: Sound Blaster Recon3Di
- Hard_Drive_Capacity: 500GB
- Corel programs: PSP: 8-2023
- Location: USA
Re: Get colours from colour palette
PaletteColorList will only be populated if the image is converted to a paletted image (256 colors, grayscale, that sort of image).
How do you currently have users select colours in the script? Do you pause the script and have users select their own colors? Or do you use the GetMaterial command to bring up the standard color picker?
How do you currently have users select colours in the script? Do you pause the script and have users select their own colors? Or do you use the GetMaterial command to bring up the standard color picker?
https://levifiction.wordpress.com/
-
Nok
- Posts: 13
- Joined: Mon Mar 17, 2014 9:12 am
- System_Drive: C
- 32bit or 64bit: 64 Bit
- processor: Intel Core i5
- Hard_Drive_Capacity: 220G
- Monitor/Display Make & Model: Samsung 17inch
- Contact:
Re: Get colours from colour palette
How do I convert my image to a paletted image?
I used the GetMaterial cmmand.
I used the GetMaterial cmmand.
-
Nok
- Posts: 13
- Joined: Mon Mar 17, 2014 9:12 am
- System_Drive: C
- 32bit or 64bit: 64 Bit
- processor: Intel Core i5
- Hard_Drive_Capacity: 220G
- Monitor/Display Make & Model: Samsung 17inch
- Contact:
Re: Get colours from colour palette
I have used Image-->Decrease Color Depth-->16 Color Palette and I now have a 16-colour paletted image.
