|
I'm looking for a fast way to apply a new palette to an existing 8-bit .png image. How can I do that? Is the .png re-encoded when I save the image? (Own answer: it seems so)
What I have tried (edited):
import Image, ImagePalette output = StringIO.StringIO...
Started by Jack Ha on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
To change the palette....
If you want to change just the palette, then PIL will just get in your at the end.
Changing palette's without decoding and (re)encoding does to GIF seems a lot faster.
Giving R, G and B value at each index.
|
|
Hi everybody: i want to take a picture and retrieve the main color analyzing its palette (i think this should be the easiest way), but i don't know really where to start.
Started by timetravel0 on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Assuming you have a raw 24 bit RGB image and you want to find the number of times each color appears:
there are really 2 simple ways of doing this:
my favourite is just to create an array of ints for each possible color, then just index into that array... .
|
|
I have a tool palette which shows up when an admin user is logged in to a site. The palette is draggable (via jQueryUI.draggable) and I would like it to remember the position between pages/refreshes... Is there a standard way of doing this, or a plug-...
Started by Dycey on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Cookies are a fine option - you can use the functions by PPK like this:
$('#palette.
The dragging stops.
|
Ask your Facebook Friends
|
We're maintaining an old video game that uses a full-screen 256-color graphics mode with DirectDraw. The problem is, some applications running in the background sometimes try to change the system palette while the game is running, which results in corrupted...
Started by CyberShadow on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
What you can do is a 'simple to 16 bit(or 32 bit) using the... .
With the SYSPAL_NOSTATIC256 parameter?
You could also see if your palette contains the 20 Windows reserved to change the palette in order to render itself, as I understand it.
|
|
Summary Using Windows GDI to convert 24-bit color to indexed color, it seems GDI chooses colors which are "close enough" even though there are exact matches in the supplied palette.
Can anyone confirm this as a GDI issue or am I making a mistake somewhere...
Started by Leo Davidson on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The palette for the DIB:
However, if the application is using a DIB section, you create a logical palette from the DIB colour table as usual and then also pass the DIB colour table to the DIB section) after a palette is selected ....
|
|
I'm trying to get more colors in the terminal emulator. Mostly to get prettier syntax highlighting. I've googled quite extensively for a terminal emulator that supports 24bit colordepth and that doesn't seem to exist. And even if it did gnu screen, that...
Started by oivvio on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at superuser):
As an answer to your question: No, you can't define the full palette of 256 colors..
|
|
I need help in displaying a colour palette in my application. I am using CakePHP and JQuery for implementing mu application. For my themes module I need a colour picker or colour palette. Is there any plugin to download and use or is there any helpers...
Started by Angeline Aarthi on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
There's a long list of pickers here ..
Personally I like the Farbtastic picker a lot.
You could use the ColorPicker jQuery plugin.
|
|
Im creating a program that generates a palette from a true color image, I need some help with some file formats
It already creates a photoshop cs3 palette
i haven't found any info on how to make a Paintshop pro 8 palette or a gimp palette
plus i would...
Started by Jim on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Values, you generate a text file like this:
GIMP Palette Name: custompalette Columns: 4 # 0 0 0.
|
|
I can import a type library via tlibimp.exe, but when I open up the IDE, the libraries are not in the activex pallete. I can't seem to figure how to get it to install to a particular package either. In the IDE there is an install button in the Import ...
Started by Everett on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
When you open up BCB, you will see the components under the activex palette.
I'm not sure if this can be specified with tlibimp\applet50.bpl) .
Determines the palette to install to.
|
|
I am using the Office 2007 Black theme for my RibbonWindow and really like all of the colors it uses. Here is the resource dictionary included in my ribbon window's resources.
<ResourceDictionary Source="/RibbonControlsLibrary;component/Themes/Office...
Started by stevosaurus on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Steven, you know what....
These namespaces in .NET framewordk may help
Microsoft.Office.Core.ThemeColor
Microsoft.Office.Core.ThemeColorScheme
System.Windows.Forms.ProfessionalColors - Provides Color structures that are colors of a Windows display element .
|