palette

DrawImage from one indexed Bitmap onto another C# .NET Framework 2.0

Hello, I have two indexed (8-bits) Bitamp, both using the same Palette in C# (.NET Framework 2.0). I want to bit block copy pixels from one onto another on designated coordinates. I had tried to use Graphics class, but get exception that it doesn't work with indexed colors, I tried also with getpixel()/setpixel() but get the same excepti...

Is there any way to divide rgb color palette?

I'm trying to generate a color palette which has 16 colors. i will display this palette in 4x4 grid. so i have to find a way to rgb color palette which has 255*255*255 colors divided to 16 colors equally and logically. i think it's gonna be a mathematical algorithm. because i'm tring to pick 16 vectors from 3x3 matrix which picked in e...

PHP GD palette colors

In PHP GD how can you convert a truecolor image to a palette without losing any colors. With imagetruecolortopallete it doesn't work. I have a function that runs through all the colors and filters them (eg. grayscale). and It doesn't retain all colors, such as this picture of a Lamborghini- Picture This is my code $im = imagecreat...

How can I extract the palette from a 5-6-5 bitmap image?

I am trying to extract the palette from a 5-6-5 (16bit) bitmap image that I have produced using ImageConverter Plus from an original Photoshop file. I need to read out the palette and compare it to the palette I have elsewhere for another image. Is there a piece of freeware (or not) software that can do this? I can read palette files i...

Good palette for charting

I'm creating an application that works with charts. There are lots of charts in it, so I need lots of colors. It turned out it's a problem to find a good palette. In my case good palette is the one that satisfies following conditions: 1. There no colors that are similar to white, because the background is similar to white. 2. Neighbor co...

How does "paletteMap" work?

I need to port a bit of ActionScript code into Java. btw, never touched a as file in my life. So far it's been easy, because AS syntax is fairly simple. There's a piece of code that calls bmpData.paletteMap( bmpData , rect, point, rArray, gArray, bArray); //all arrays of size 256 The entire file is kind of dependent on this function ...