Indexed Color Palette Bitmap Possible?

Hi. I am writing a Karaoke CDG player and hit a problem. The the CDG graphic data uses color palettes. The pixel data is an index into a color palette of 16 colors. The player works but some songs use fade type effects and other tricks by changing the color palette quickly over time. The way I have this implemented right now is to maintain a seperate array containing the colors and lookup the color for each pixel and call setPixel in a BitmapData object. It works fast enough during normal playback but it's way too slow to update the palette and call set pixel on the image data. Is there a way to actually use palette based bitmaps or can you think of a faster way of transforming individual colors in an existing bitmap without calling getPixel/setPixel. Thanks.

I managed to find a way to solve my problem using the paletteMap method of the BitmapData class.
BTW not sure if there is a standard area to publish community code but the Karaoke CDG component is available if anyone wants it. The component basically plays and renders Karaoke mp3/cdg files.

Similar Messages

  • Defining the color index (populate the color palette with custom colors in an orderly manner)

    Hi,
    In Excel 2003 I used the following lines (see BELOW) to populate my color palate (in an orderly manner) with custom colors.
    It appears that these commands did not make the migration to Excel 2013.
    Could someone please help me with the fix.
    THANX for your time... Frank
    CODE:
    With ActiveWorkbook 'This defines the COLOR INDEX
       .Colors(1) = RGB(150, 0, 0)            'Red 1
       .Colors(2) = RGB(255, 255, 255)      'Black 5 WHITE
       .Colors(3) = RGB(255, 145, 145)        'Red 3
       .Colors(4) = RGB(193, 255, 193)      'Green 4
       .Colors(5) = RGB(0, 0, 255)           'Blue 2
       .Colors(6) = RGB(255, 255, 215)     'Yellow 4
       .Colors(7) = RGB(255, 195, 195)        'Red 4
       .Colors(8) = RGB(175, 255, 255)       'Cyan 4
       .Colors(9) = RGB(255, 0, 0)            'Red 2
       .Colors(10) = RGB(0, 180, 0)         'Green 2
       .Colors(11) = RGB(0, 0, 128)          'Blue 1
       .Colors(12) = RGB(255, 255, 0)      'Yellow 2
       .Colors(13) = RGB(255, 0, 255)     'Magenta 3
       .Colors(14) = RGB(51, 204, 204)       'Cyan 2
       .Colors(15) = RGB(241, 241, 245)     'Black 4 Gray
       .Colors(16) = RGB(200, 200, 200)     'Black 2 Gray
    '   .Colors(17) = RGB(0, 0, 0) 'Custom Color TBA
    '   .Colors(18) = RGB(0, 0, 0) 'Custom Color TBA
    '   .Colors(19) = RGB(0, 0, 0) 'Custom Color TBA
    '   .Colors(20) = RGB(0, 0, 0) 'Custom Color TBA
    '   .Colors(21) = RGB(0, 0, 0) 'Custom Color TBA
    '   .Colors(22) = RGB(0, 0, 0) 'Custom Color TBA
    '   .Colors(23) = RGB(0, 0, 0) 'Custom Color TBA
    '   .Colors(24) = RGB(0, 0, 0) 'Custom Color TBA
    '   .Colors(25) = RGB(0, 0, 0) 'Custom Color TBA
    '   .Colors(26) = RGB(0, 0, 0) 'Custom Color TBA
    '   .Colors(27) = RGB(0, 0, 0) 'Custom Color TBA
    '   .Colors(28) = RGB(0, 0, 0) 'Custom Color TBA
    '   .Colors(29) = RGB(0, 0, 0) 'Custom Color TBA
    '   .Colors(30) = RGB(0, 0, 0) 'Custom Color TBA
    '   .Colors(31) = RGB(0, 0, 0) 'Custom Color TBA
    '   .Colors(32) = RGB(0, 0, 0) 'Custom Color TBA
       .Colors(33) = RGB(205, 205, 255)      'Blue 4
       .Colors(34) = RGB(230, 255, 255)      'Cyan 5
       .Colors(35) = RGB(235, 255, 235)     'Green 5
       .Colors(36) = RGB(255, 255, 235)    'Yellow 5
       .Colors(37) = RGB(225, 225, 255)      'Blue 5
       .Colors(38) = RGB(255, 235, 235)       'Red 5
       .Colors(39) = RGB(251, 235, 255)   'Magenta 5
       .Colors(40) = RGB(255, 237, 225)    'Orange 5
       .Colors(41) = RGB(97, 97, 255)        'Blue 3
       .Colors(42) = RGB(0, 255, 255)        'Cyan 3
       .Colors(43) = RGB(255, 255, 159)    'Yellow 3
       .Colors(44) = RGB(255, 225, 97)     'Orange 4
       .Colors(45) = RGB(255, 172, 51)     'Orange 3
       .Colors(46) = RGB(255, 102, 0)      'Orange 2
       .Colors(47) = RGB(204, 0, 255)     'Magenta 2
       .Colors(48) = RGB(225, 225, 225)     'Black 3 Gray
       .Colors(49) = RGB(0, 128, 128)        'Cyan 1
       .Colors(50) = RGB(0, 255, 0)         'Green 3
       .Colors(51) = RGB(0, 122, 0)         'Green 1
       .Colors(52) = RGB(223, 218, 0)      'Yellow 1
       .Colors(53) = RGB(188, 76, 0)       'Orange 1
       .Colors(54) = RGB(255, 153, 255)   'Magenta 4
       .Colors(55) = RGB(102, 0, 102)     'Magenta 1
       .Colors(56) = RGB(0, 0, 0)           'BLACK 1
    End With

    Hi Peter,
    THANK YOU for your reply.
    I have just enough VBA skills to get myself into trouble PLUS it's been a LONG time since (with any regularity) I've written any subRoutines.
    I'm getting a Compile Error: Can't assign to array... and... "arrPal =" is HIGHLIGHTED (in the  arrPal = ActiveWorkbook.Colors   statement)
    I should probably mention that the ColorPalate code resides (along side) with other code... in a macro subroutine that configures Excel for the way I work.
    The code I used is BELOW
    THANX for your time... Frank
    CODE:
        With ActiveWorkbook 'This defines the COLOR INDEX
            Dim arrPal(1 To 56) As Long
            arrPal = ActiveWorkbook.Colors
               arrPal(1) = RGB(150, 0, 0)            'Red 1
               arrPal(2) = RGB(255, 255, 255)      'Black 5 WHITE
               arrPal(3) = RGB(255, 145, 145)        'Red 3
               arrPal(4) = RGB(193, 255, 193)      'Green 4
               arrPal(5) = RGB(0, 0, 255)           'Blue 2
               arrPal(6) = RGB(255, 255, 215)     'Yellow 4
               arrPal(7) = RGB(255, 195, 195)        'Red 4
               arrPal(8) = RGB(175, 255, 255)       'Cyan 4
               arrPal(9) = RGB(255, 0, 0)            'Red 2
               arrPal(10) = RGB(0, 180, 0)         'Green 2
               arrPal(11) = RGB(0, 0, 128)          'Blue 1
               arrPal(12) = RGB(255, 255, 0)      'Yellow 2
               arrPal(13) = RGB(255, 0, 255)     'Magenta 3
               arrPal(14) = RGB(51, 204, 204)       'Cyan 2
               arrPal(15) = RGB(241, 241, 245)     'Black 4 Gray
               arrPal(16) = RGB(200, 200, 200)     'Black 2 Gray
    '           arrPal(17) = RGB(0, 0, 0) 'Custom Color TBA
    '           arrPal(18) = RGB(0, 0, 0) 'Custom Color TBA
    '           arrPal(19) = RGB(0, 0, 0) 'Custom Color TBA
    '           arrPal(20) = RGB(0, 0, 0) 'Custom Color TBA
    '           arrPal(21) = RGB(0, 0, 0) 'Custom Color TBA
    '           arrPal(22) = RGB(0, 0, 0) 'Custom Color TBA
    '           arrPal(23) = RGB(0, 0, 0) 'Custom Color TBA
    '           arrPal(24) = RGB(0, 0, 0) 'Custom Color TBA
    '           arrPal(25) = RGB(0, 0, 0) 'Custom Color TBA
    '           arrPal(26) = RGB(0, 0, 0) 'Custom Color TBA
    '           arrPal(27) = RGB(0, 0, 0) 'Custom Color TBA
    '           arrPal(28) = RGB(0, 0, 0) 'Custom Color TBA
    '           arrPal(29) = RGB(0, 0, 0) 'Custom Color TBA
    '           arrPal(30) = RGB(0, 0, 0) 'Custom Color TBA
    '           arrPal(31) = RGB(0, 0, 0) 'Custom Color TBA
    '           arrPal(32) = RGB(0, 0, 0) 'Custom Color TBA
               arrPal(33) = RGB(205, 205, 255)      'Blue 4
               arrPal(34) = RGB(230, 255, 255)      'Cyan 5
               arrPal(35) = RGB(235, 255, 235)     'Green 5
               arrPal(36) = RGB(255, 255, 235)    'Yellow 5
               arrPal(37) = RGB(225, 225, 255)      'Blue 5
               arrPal(38) = RGB(255, 235, 235)       'Red 5
               arrPal(39) = RGB(251, 235, 255)   'Magenta 5
               arrPal(40) = RGB(255, 237, 225)    'Orange 5
               arrPal(41) = RGB(97, 97, 255)        'Blue 3
               arrPal(42) = RGB(0, 255, 255)        'Cyan 3
               arrPal(43) = RGB(255, 255, 159)    'Yellow 3
               arrPal(44) = RGB(255, 225, 97)     'Orange 4
               arrPal(45) = RGB(255, 172, 51)     'Orange 3
               arrPal(46) = RGB(255, 102, 0)      'Orange 2
               arrPal(47) = RGB(204, 0, 255)     'Magenta 2
               arrPal(48) = RGB(225, 225, 225)     'Black 3 Gray
               arrPal(49) = RGB(0, 128, 128)        'Cyan 1
               arrPal(50) = RGB(0, 255, 0)         'Green 3
               arrPal(51) = RGB(0, 122, 0)         'Green 1
               arrPal(52) = RGB(223, 218, 0)      'Yellow 1
               arrPal(53) = RGB(188, 76, 0)       'Orange 1
               arrPal(54) = RGB(255, 153, 255)   'Magenta 4
               arrPal(55) = RGB(102, 0, 102)     'Magenta 1
               arrPal(56) = RGB(0, 0, 0)           'BLACK 1
    ' apply new RGB's to whichever palette index's you want to change
            ActiveWorkbook.Colors = arrPal
        End With

  • INDD to PDF: web-safe color palette?

    Context: currently, the Google Docs Viewer/Embedder, when used to display a PDF in a browser, heavily downsamples images in the PDF resulting in grisly color changes and posterization. This has been discussed for a long time elsewhere on the web (example) and is something Google might eventually deal with.
    I assume Google's intention was to hack down bandwidth usage, which I don't begrudge them, but the results stand out glaringly in an otherwise vibrant WWW. Embedded fonts work fine, and the only other visual/layout errors can be with some more advanced design effects—unless they are flattened down to Acrobat 5 compatibility.
    With the nasty color changes, what I believe I'm seeing is a re-processing of the images in the PDF with ye olde web-safe color palette. Or maybe its paleolithic predecessor. FYI the source PDF is unaffected. And FYI, yes, I am aware of  many other options for embedding a PDF in a web page; I'd like to try and solve this one.
    My thinking is this: if I can output my InDesign file such that images are converted more gracefully to a web-safe palette, and possibly with more satisfactory color dithering, then the results via the Google Docs Viewer/Embedder might be improved, more predictable, good enough for now.
    I know how to do this with Photoshop, and I assume it's a Photoshop engine working behind the scenes in/for InDesign when processing images, so I'm hoping this is attainable.
    Semi-educated guesses:
    That a suitable color profile could be created and selected when outputting either PDF or PS, resulting in 255-color (indexed) RGB images in the final PDF layout.
    That the long way is to make alternate versions of each image used in the layout, swap them (such as with relink to file extension, e.g. GIF for TIF), and output a version specifically for embedding.
    Thanks in advance for any creative thinking.
    Edit: it's looking like the limit is far fewer colors, possibly 16. Gross. But I'm still curious about the possibility of a method for this, as it could have other applications.

    After getting both your replies, I went back and experimented some more. I am creating a pdf for a b&w book interior, and it is setup as an ID book, with two files. I was trying to generate the pdf from the book.indb file without the individual book indd files being open. That resulted in the screen in my initial question.
    I went back and doubleclicked both of my book indd files and selected both, then generated the pdf from the book.indb file. This time I got the proper choices Document CMYK - U.S. Web Coated ....

  • Indexed color / differences in dimension

    Hi!
    Is there anybody, who can explain to me, how and why an indexed color in PDF is generated? There is following entry in my file, that is originally saved in RGB:
    15 0 obj
    [/Indexed/DeviceRGB 2 18 0 R]
    endobj
    And why is it not possible to color manage indexed colors?
    Furthermore there are differences in the dimension of objects in the PDF after the export out of InDesign. The differences are minimal, but I don`t understand, why there are any differences. My objects in InDesign are 50pt to 50pt. And in the PDF they are 50,004pt ...-what happened?
    Thank your for some ideas!
    Simone

    with regard to color managing Indexed color - I can't see a reason why that should not be possible. At least callas software's pdfColorConvert simply does color conversions for Indexed color as well...
    Whether Indexed color is used (as opposed to specifying color values directly) is up to the software writing the PDF. Most often Indexed color is found for images where only 256 or less different colors need to be addressed (like in duotone images). I have nevertheless seen use of Indexed color for grayscale (where it does not make a lot of sense as there would be max. 256 different gray values anyway, at least for 8 bit color) and even for bitmap images, and also for vector objects (where again Indexed color does not add any value). On the other hand - Indexed color does not do any harm (besides using a few unnecessary bytes).
    Olaf Drümmer
    callas software

  • Eyedropper not working in index color on Mac

    I recently changed from MAC 9.1 and photoshop 7 to a 24" IMAC and photoshop CS3. I have 3 gig ram -- operating system 10.4.10. I can't get the eyedropper to work in index color in CS3. I've talked with someone else who has a PC and it is working on the PC. I called Adobe and it is working on their PC's too. I went to the Apple Store and it isn't working on their MAC. So I am assuming either the eyedropper isn't working on the MAC or I don't know how to get it to work in CS3.
    Can someone please help -- thanks.

    Carol,
    That was indeed helpful, Carol. Thank you.
    I printed out your post and followed the steps you outline.
    The eyedropper in the Color Table works just as expected on my computer. (See specs below)
    Just to make sure, I opened the Help viewer and followed the instructions therein:
    Color / Converting between color modes
    Customize indexed color tables
    The Color Table command lets you make changes to the color table of an indexed-color image. These customization features are particularly useful with pseudocolor imagesimages displaying variations in gray levels with color rather than shades of gray, often used in scientific and medical applications. However, customizing the color table can also produce special effects with indexed-color images that have a limited number of colors.
    Note: To shift colors simply in a pseudocolor image, choose Image > Adjustments, and use the color adjustment commands in the submenu.
    Edit colors and assign transparency with a color table
    You can edit colors in the color table to produce special effects, or assign transparency in the image to a single color in the table.
    Open the indexed-color image.
    Choose Image > Mode > Color Table.
    To change a single color, click the color and choose a new color in the color picker.
    To change a range of colors, drag in the table to choose the range of colors you want to change. In the color picker, choose the first color you want in the range and click OK. When the color picker redisplays, choose the last color you want in the range and click OK.
    The colors you selected in the Color Picker are placed in the range you selected in the Color Table dialog box.
    To assign transparency to a color, select the Eyedropper tool in the Color Table dialog box, and click the color in the table or in the image. The sampled color is replaced with transparency in the image.
    Click OK in the Color Table dialog box to apply the new colors to the indexed-color image.
    Choose a predefined color table
    Open the indexed-color image.
    Do one of the following:
    Choose Image > Mode > Color Table.
    Choose Image > Mode > Indexed Color. In the Indexed Color dialog box, choose Custom from the Palette menu. This opens the Color Table dialog box.
    In the Color Table dialog box, choose a predefined table from the Table menu.
    Custom
    Creates a palette you specify.
    Black Body
    Displays a palette based on the different colors a black body radiator emits as it is heatedfrom black to red, orange, yellow, and white.
    Grayscale
    Displays a palette based on 256 levels of grayfrom black to white.
    Spectrum
    Displays a palette based on the colors produced as white light passes through a prismfrom violet, blue, and green to yellow, orange, and red.
    System (Mac OS)
    Displays the standard Mac OS 256-color system palette.
    System (Windows)
    Displays the standard Windows 256-color system palette.
    Save and load color tables
    You use the Save and Load buttons in the Color Table dialog box to save your indexed color tables for use with other Adobe Photoshop images. After you load a color table into an image, the colors in the image change to reflect the color positions they reference in the new color table.
    Note: You can also load saved color tables into the Swatches palette.
    Since all of the above worked as expected, I would conclude that it is a bug that is not affecting PowerPC (pre-Intel) Macs. :(
    Computer setup:
    Dual bootable, DP MDD 1.25GHz G4 (2004), maxed out at 2GB of RAM, both Spotlight and Dashboard disabled, Photoshop primary scratch disk on dedicated 160GB internal drive, at least 100GB available on each of the four internal drives, up to 300GB on some. Counting external FW drives just over 1TB of drive space available. nVidia GeForce 4 Ti 128MB graphics display card (about to be upgraded in the next couple of hours). Processor napping enabled through CHUD 3.5.2.

  • Converting from indexed color to grayscale no longer works in CS4

    I have a number of files to convert from indexed colors to grayscale. Did some but clicked "don't show me again" box on the Discard Colors warning. Now I can't make the conversion. Everything looks fine, but when I close file, then reopen, it's reverted to indexed colors - restarting Photoshop or the computer doesn't help.
    I'd appreciate any help....Thanks, Grant

    Grant,
    All your contact information is posted to the web. These forums are crawled by bots harvesting info.
    I don't think you want additional junk mail, unsolicited phone call scams, and possible attempts to crack your website, do you?
    People here recommend not to post contact info. Perhaps a forum moderator can remove your personal info, but you might be able to edit your post yourself.
    GIF only uses indexed color mode, So if you want your files to NOT be in the Indexed Color mode you need to save them as another file format like .png or .jpg

  • Custom Color Palette for Charts

    Hi all,
    Can I define the colors of a chart by a custom color palette in Design Studio (as you can do it in Web Intelligence) or does SAP intend to implement such a function in a next release? With CSS this isn't fully possible, because it doesn't allow you to coloring the additional line like the corresponding main line.
    I've already seen and commented this post Re: Custom Color Palette for Charts / CSS, but it's still unanswered. Maybe I've with a new discussion more success.
    Thank you and kind regards
    Silvan

    Carola,
    Dirk Mayrock has a nice list here Design Studio 1.1 Full List of CSS classes (?)
    I think you have seen that already.
    Also see Styling a chart in Design Studio
    Especially see participated David Gyurasz as he has answered several CSS questions CSS-Customizing of Column-Combination chart as an example
    Tammy

  • Custom color palette in WAD charts

    Hi BI Experts,
    we are trying to create a custom color palette, which we want to apply to all your WAD charts.
    Can anyone tell us how to do this?
    Of course we can customize the colors in each chart, but that's a hell of a lot of work. Moreover, there doesn't seem to be any way to save the custom colors, but we have to recreate the colors with the color picker for every single chart.
    The WAD chart wizard allows to choose between color palettes "Enjoy", "Streamline", "Tradeshow" and "User specific".
    If it is not possible to create a custom color palette, can we modify one of these SAP color palettes? What does "User specific" mean?
    Any help will be much appreciated (and of course rewarded with points).

    Moin, bei dem Problem kann ich leider überhaupt nicht helfen. Solltest Du allerdings, wie ich annehme, in Göttingen studiert haben und dann ein paar Jahre in den USA gewesen sein, dann melde Dich doch einfach mal, so Du Lust hast.
    Besten Gruß,
    Andi

  • How does one force an image to a defined color palette?

    I'm trying to limit the colors displayed in an RGB image but I'm not sure how to go about doing. I have a palette of 454 colors (so indexed color is not an option) and I would like to force my image to that color space. This may seem like an odd request, but there's actually a (theoretically) logical reason for it: in a nutshell, I have a swatch palette that corresponds to colors of a particular brand of thread and I want to fit the image's colors to the nearest thread color. While I might be able to do that by eye, I have 454 choices to choose from (laborious!) and I'd prefer to automate the process by letting Photoshop's adaptive color conversion algorithms do their magic.
    Or am I overlooking something obvious?
    I appreciate any suggestions or assistance!

    Charles,
    I went ahead and cobbled together a script from other's code to generate a directory full of 100x100 72dpi jpg swatches from a CSV list of names, R, G, and B values. I fed the 454-file directory to MacOSaix and I'm letting it do it's thing. Thanks for the suggestion!
    I doubt it will be of any value to anyone, but here's the script, just in case:
    #target Photoshop
    function main() {
         if (isOSX()) {
              var csvFile = File.openDialog('Select a CSV File', function (f) { return (f instanceof Folder) || f.name.match(/\.csv$/i);} );
         } else {
              var csvFile = File.openDialog('Select a CSV File','comma-separated-values(*.csv):*.csv;');
         if (csvFile != null) {
              fileArray = readInCSV(csvFile);
              var columns = fileArray[0].length;
              //alert('CSV file has ' + columns + ' columns…');
              var rows = fileArray.length;
              //alert('CSV file has ' + rows + ' rows…');
              if (columns == 4 && rows > 0) {
                   generateSwatches(csvFile);
              } else {
                   var mess = 'Incorrect CSV File?';
                   isOSX ? saySomething(mess) : alert(mess);
         } else {
              var mess = 'Ooops!!!';
              isOSX ? saySomething(mess) : alert(mess);
    main();
    function generateSwatches(csvFile,directory) {
         var docRef = app.documents.add();
         with (docRef) {    
    //         for (var i = unusedSwatches.length-1; i >= 0; i--) {
    //              unusedSwatches[i].remove();
               var directory=csvFile.path;
              for (var a = 0; a < fileArray.length; a++) {
                   var filename = fileArray[a][0] +".jpg"; // First Column is name for file                     
                   r = parseFloat(fileArray[a][1]); // Second Column is Red
                   g = parseFloat(fileArray[a][2]); // Third Column is Green
                   b = parseFloat(fileArray[a][3]); // Forth Column is Blue
                   if (r >= 0 && r <= 255 && g >= 0 && g <= 255 && b >= 0 && b <= 255) {
                        SaveJPEG(filename, directory, r, g, b);
                   } else {
                        var mess = 'Color values are out of range?';
                        isOSX ? saySomething(mess) : alert(mess);
    function readInCSV(fileObj) {
         var fileArray = new Array();
         fileObj.open('r');
         fileObj.seek(0, 0);
         while(!fileObj.eof) {
              var thisLine = fileObj.readln();
              var csvArray = thisLine.split(',');
              fileArray.push(csvArray);
         fileObj.close();
         return fileArray;
    function saySomething(stringObj) {
         var speakThis = 'say "' + stringObj + '" using "Fred"';
         app.doScript(speakThis, 1095978087); // AppleScript
    function isOSX() {
      return $.os.match(/Macintosh/i);
    function SaveJPEG(filename, directory, r, g, b){
          // create doc
       app.preferences.rulerUnits = Units.PIXELS
       var doc = app.documents.add(100, 100, 72, filename,);
        // define your fill color
       var color = new SolidColor();
       color.rgb.red = r;
       color.rgb.green = g;
       color.rgb.blue = b;
       var imagefile = new File(directory+"/"+filename);
       jpgSaveOptions = new JPEGSaveOptions();
       jpgSaveOptions.embedColorProfile = true;
       jpgSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
       jpgSaveOptions.matte = MatteType.NONE;
       jpgSaveOptions.quality = 12; //JPEG quailty (1-12)
          // fill layer
       doc.selection.selectAll();
       doc.selection.fill(color);
        activeDocument.saveAs(imagefile, jpgSaveOptions, true ,Extension.LOWERCASE);
       // close document
       doc.close(SaveOptions.DONOTSAVECHANGES);
    (Is this overkill and wildly unnecessary? Of course it is.)

  • Plugin for a sort of color palette

    Hello everybody,
    is there a plugin or a feature in Photoshop CS6 I haven't discovered yet that offers me a sort of color palette that looks like the 'Color' feature in the 'Window' menu in Adobe Illustrator CC 2014? The palette offered by the plugin should deliver the colors contained in the currently opened picture.
    In Gimp e.g. there's a feature in the colors menu that delivers a gradient of all the colors contained in the image.
    Thank you very much.

    the only way I know how to do it is:
    1. convert your image to indexed color. (Image/Mode/Indexed Color...) .. hit ok if it asks you to flatten all layers, then hit ok again. By default this will break your image down into 256 colors.
    2. go to Image/Mode/Color Table... and in the pop-up window, click 'save...' and then just type in a new name for the file it is asking you to save. Do not type an extension after your filename. And remember where you're saving the file. Now you're back to the previous pop-up window (the color table window)- just hit ok to get out of it
    3. in your swatches panel, choose 'replace swatches' - if it asks you to save your current swatches, you can do so before proceeding. Then, browse to the folder where you saved the file. At the bottom of the "load" window where it says "Files of Type:" at the bottom, it says "Swatches (*ACO) by default. Click on that, and it drops another menu down, Select "COLOR TABLE (*ACT) instead. Now, the file you saved will show up. Click on that file to load it into your swatches.
    4. hit "step back" or undo a few times until you get your image back into RGB mode (or whatever mode you were in before Indexed mode).
    And now your swatches panel will contain every color in your image as a swatch, up to 256 colors. This won't work for millions of colors because obviously how could you have a swatch panel with 16 million colors..
    this is a painful, long workaround... but it does what I think you're asking for. Maybe you can find a way to automate it via scripting or something

  • Set Custom Color Palette as Default

    Does anyone know how to set the a custom default palette? I created a few new colors and exported. Now when I try to import, I browse to the .pal file, however the option check box 'Use Imported Color Palette' is disabled.
    In preferences my color mode is set to Editable. Is there another setting somewhere? I'm trying to set this up so all my developers have access to the colors and they only have to set the pallete up once.
    TIA - Brian

    This has come up before, and I think it is not possible.  The OS always keeps one of its own Latin keyboards active, and unfortunately I have not seen any way that these (located in system/library/keyboard layouts/applekeyboardlayouts.bundle) can be modified by the user.
    PS Another possible source for "PC" layouts for people using that kind of hardware instead of Apple keyboards is the set of Logitech layouts provided when you download Ukelele.

  • Defning own color palette for Chart Items

    Hello,
    i have a requirement for several Cockpits, the values of all diagramms of actual year should have a special color, which is not defined in the color palettes Tradeshow, Streamline or Enjoy.
    I don't want to change the color for each chart, i'v already tried the Portal Theme Editor, but i was not able to change color settings for charts.
    Is it possible to create custom color palette which i can choose in the global settings in the chart item dialog?
    Best regards,
    Frank

    1. Go to the following directory on the server side Installation Directory \SAP BusinessObjects Enterprise XI 4.0\images
    2. Find the file there named as VisualizationConfig.template.xml
    3. Rename this file to VisualizationConfig.xml
    4. Then edit this file and add the color for the palette as you required (RGB colors are used)
    5. Check there are no errors in the config file, otherwise the standard palette is applied – you can define only one Corporate palette, and the palette ID must not be changed
    6. Finally, you need to reboot Tomcat after editing the config file.

  • Auto Apply Custom Color Palette to photo?

    I have two questions:
    1) Is there a way to automatically capture colors from a photo to automatically create a custom color palette? (for example, if I want a color palette of 20 colors, it would automatically pick 20 colors and create a palette).
    2) Is there a way to take a custom color palette, and automatically apply that palette to a photo?
    (I don't want to just use the color picker to choose my colors....I am looking for automation)
    Thanks!

    I'm not sure... maybe I could use index colors.... I will look into that. I have found some "color palette generators" online, which I need to investigate also. I just thought that maybe there was a feature directly in photoshop that might work.
    Attached are sample images. I would like to automatically take a color palette from the lilies, and apply those colors automatically to the forest. I would like the forest to have the same color scheme as the lilies, so that the two images would look very similar.

  • Identifying colors in Color palette in Keynote

    Hi! I'm new to Keynote and trying to figure out how to identify the color number/values (RGB, CMYK, hex number, ANYTHING!) of a color in the Colors palette. I'm also wondering whether there's a way to type in the color values of the specific color I want vs. just using the slider to approximate it.
    Is this possible?
    Thanks very much for your help!
    Margaret

    Thanks so much! I have no idea why I'm not seeing those things, but I'll try to figure out what's wrong with my system.
    Much appreciated!
    Margaret
    Margaret, if you select the colour sliders, the
    palette should show you the numeric values that the
    sliders have, and let you directly change those
    values. Furthermore, you can select what colour
    model the sliders use (gray scale, RGB, CMYK, HSB).
    If you aren't seeing the values in the sliders
    palette, then something is likely wrong with your
    system.
    (By the way, here's a colour palette tip that many
    folks might not know -- you can add any colour on
    your screen to your palette by using the small
    magnifying glass in the colour palette -- click on it
    once, and it will change your cursor into a
    magnifying glass; click again, and the colour in its
    crosshair becomes the palette's selected colour.
    If you like this, but want more control, or hex
    values for RGB, the DigitalColor Meter application,
    in the Utilities folder in Applications, will allow
    you to determine the average colour of a spot of a
    specified size.)
    PowerMac G5   Mac OS X (10.4.4)

  • Edit a Color Palette to Reduce Colors

    I am trying to reduce the number of colors in a file.
    If I save for web devices and reduce the number of colors, Photoshop appears to go by volume, rather rather than distinctiveness. Area of distinct colors get merged and multiple shades of similar colors stay.
    Is there any way to edit the color palette so that I can explicity merge colors. Make all A and B, A.

    yes, covert the image to Indexed Mode and then you can select how many colors you'd like your image to contain (I believe it's up to 256 colors in this mode). Image/Mode/Indexed Color and then once you've selected your color scheme, you can convert it back to RGB mode.

Maybe you are looking for

  • My Ipod Touch Wifi is Greyed Out! HELP

    Its been two days and my Ipod Touch 3 Generation Wifi says NO WIFI and is Greyed Out. I've updated my software and Itunes and even restored it but nothing has worked! My ipod is no longer under warranty and I don't know what else to do! PLEASE HELP!

  • Java2D/Swing bug? scrolling with painting JTextArea components hangs app

    Please see http://forum.java.sun.com/thread.jspa?threadID=653181

  • Extending functionality of a button in pagebuttonbar

    Hi, I'm trying to customize "Create Customer" page in R12. The page has "Apply" button in pagebuttonbar. Based on "Profile Class" value entered in the create page, I need to create some child records like customer relationships. For this, I think I n

  • Oracle, schemas and transactions

    Hi all, I'd like to know if the Sybase ASE feature of being able to handle in the same transaction (with the same TCP/IP physical connection) different databases hosted on the same machine (dataserver) can be translated in Oracle ? the schema concept

  • Still java.lang.NoClassDefFoundError:

    Im trying to connect a TINI board up to my pc using the serial interface and therefore require javax.comm api. I have downloaded this and followed the instructions to install including placing the comm.jar file in C:\Program Files\Java\jdk1.5.0_03\li