Something like calculating the average value of rgb components and then decide whether to use black or white?
Do I have to convert RGB to HSV in first step 'cause RGB is not always what the human eyes see?
I'm using C#
...
Let me show you:
As you can see "Item foreground" is disabled.
I want to believe there's something wrong on my end because being able to choose the colors you use to program in is a basic right for a programmer. No one should ever take that feature away and go unpunished.
...
I have an SWF file with only vector illustrations in it (no bitmaps). Is there a way to improve colour consistency across different monitors?
Colour management is a very complex topic and the more I read about it the more confused I become. There's this thing called ICC profiles which are supposed to convert colours into device indepen...
Hi all -
I need a way to calculate lighter hex color(s) based on a provided one. I realize I could use a color transform, but I need the actual value in order to generate a gradient.
Thanks in advance for any help -
b
...
I have a .PNG image with a transparent background and a drawing in it with a black color, how could I change the "black drawing color" in this image to any color i want programmatically; using rim 4.5 API ?
THANKS IN ADVANCE ....
...
Hey everyone
I've got an iPhone app that allows a person to draw something on the screen with their finger. They draw with a white line on a black background. However, when I upload this image to the web server, the line itself is white. I have been trying to work through the core graphics libraries in search of a way to invert the colo...
Is there a way to color parts of ListBox Items (not only whole line)?
For example listbox item consists of 5 words and only one is colored or 3 of 5.
Is there a way to do the same with ListView? (I know that ListView can be colored per column but i would like to have multiple colors in one column).
I am interested in only free solu...
Hey I was wondering if anybody knew a way to generate some monochromatic colors based off a single color inputted in hex into a javascript function.
...
Is there any way to customize color of selected segment in UISegmentedControl?
I've found segmentedController.tintColor property, which lets me customize color of the whole segmented control.
The problem is, when I select bright color for tintColor property, selected segment becomes almost unrecognizable (its color is almost the same a...
I'm making a windows application with C#. I'm using the color dialog box for the user to select a color. I'd like to store that color in a database, and be able to retrieve it later on, and be able to use that color in the user interface.
What approach would you suggest to me?
...
Hi all,
I think I may have stumbled onto a limitation of Flot, but I'm not sure. I'm trying to represent a single data series over time. The items' "State" is represented on the Y-Axis (there are 5 of them), and time is on the X-Axis (items can change states over time). I want the graph to have points and lines connecting those points f...
I'd like to have an enumeration of Colors based on the rainbow colors (red... yellow... green... blue...).
I see basically two ways to do that:
Create a lookup table containing some important reference colors and interpolate between these. I don't like this idea at all.
Apply some more or less fancy math. Probably less, but I don't qu...
In GDI+ you can do
Color::Green,
Color::AliceBlue, etc, as listed here
I'm looking for a similar pre-baked color enumeration for D3DCOLOR structs from a DirectX header, but I don't know where one is.
...
Hi, I'm looking for an idea for getting the most representative color in a grid of pixels. There is any algorithm for this? I'm not sure if the most representative is one of the colors appearing in the grid of is the average af all the pixels better?
...
Hi,
Basically, what I have is 4 or so .php pages, each with the #container div set to a different colour. As I click on each link in the navigation and the new page loads, I want the background to fade in from whatever the previous colour was before. Eg. the background is blue, a new page is clicked, and it fades from blue to red. Not t...
var colors = new Color[] {
Color.Blue,
Color.Green,
Color.Yellow,
Color.Orange,
Color.Red
};
var min = 0;
var max = 400;
I'm trying to get the color in between these values based on another number. So for example if I wanted to the color for the value 350, it would be 50% orange and 50% red.
EDIT - Reworded...
I'm trying to set Excel cell colors using Apache POI in Java. I played around in Excel itself and chose the colors I wanted - but I can't figure out how to use those colors with POI. I'm using the font.setColor method, which takes a short that's the index of a color... Which seems to indicate that I'm limited to the constants in IndexedC...
I'm trying to draw a line on top of an existing control but it blends the colors together. All I find is tutorial on how to make fancy blending mode but all I want is draw a solid color line over my controls but even the solidColorBrush doesn't behave like I want.
...
I have a gridview that displays data from a DB... Currently I can only change colors of all the texts in a cell, but what I need to do is to change the color of certain texts only. Is there a way to do this? Is this possible? Im just a newbie so please be patient with me..
This is my function for changing color of texts in cells:
pro...
Hi everybody,
I've just installed CKEditor and call it with JS tag.
When I save the text, all the font attributes (indentation, space, size, decoration,etc.) are correctly saved .
The problem is that when I want to edit the data, with CKEditor, all these attributes are well loaded but the COLOR even if, in the example below, it's set t...