colors

to create barchart using jfreechart such that use different background color for a special bar

I want to create barchart using jfreechart such that an special bar's background color can set be set different from the background color of the plot. Is it possible using jfreechart or any other way? Thanks in advance, Abhinav ...

How can I implement a color search for an image gallery?

I'm working on a simple image gallery project and I'd like to implement the ability to search based on a color hex code. So if someone enters 'ff1212' into the search, it will display only those images that contain that particular shade of red. I've seen a website that has a search that works the way I want: http://cssline.com (the AJAX ...

Background of cell in a DataGridView

I've been playing around with datagridviews for a bit and a question has came up. -> Doesn't changing a cells background work out of the CellFormatting event. I've tried this: private void dataGridView1_CellFormatting(object sender, dataGridViewCellFormattingEventArgs e) { if (dataGridView1.Columns[e.ColumnIndex].Name.Equals(dnsList...

Alpha blending a red, blue, and green image to produce an image tinted to any rgb value?

Basically, I have a context where I can't programatically tint an image, though I can change it's alpha value. With some experimentation, I've found that I can layer a red, blue, and green version of the image, with specific alpha values, to produce a wide range of colors. However, I am wondering if it's possible to achieve a true RGB ...

Flex - How to count colors in .SWF vector file

Suppose I've converted a vector image file (.AI/.SVG) to .SWF for ease of importing dynamically as the source of an Image in Flex. To count colors now, I have to create a "new BitMap", then ".draw()" and iterate over all pixels and use ".getPixel()" to retrieve the color. Unfortunately, because of anti-aliasing, this seems to return se...

Why does Color.IsNamedColor not work when I create a color using Color.FromArgb()?

In my app I allow the user to build a color, and then show him the name or value of the color later on. If the user picks red (full red, not red-ish), I want to show him "red". If he picks some strange color, then the hex value would be just fine. Here's sample code that demonstrates the problem: static string GetName(int r, int g, int ...

How do I change the font color and weight of gVim's command line (in the bottom)?

When you type a "Not an editor command", below of that it says: "Press ENTER or type command to continue, and it is bold and green. " It is possible to change the color and weight of that line? ...

Blurry UILabel as programmatic subview of UITableViewCell contentView

I am adding a UILabel instance as a subview of my custom UITableViewCell instance's contentView. When I select the cell, the row is highlighted blue, except for the background of the label. The label text is sharp. When I set the label and content view backgroundColor property to [UIColor clearColor], the label text becomes blurry. Ho...

How to echo with different colors in the Windows command line

I know that the color bf command sets the colors of the whole command line window but I wanted to to print one single line in a different color. Thanks ...

Convert RGBA color to RGB

How to convert a RGBA color tuple, example (96, 96, 96, 202), to corresponding RGB color tuple? Edit: What's I want is to get a RGB value which is most similar to the RGBA tuple visually on white background. ...

It is recommendable to type the color's name instead of its hex value in CSS?

I always forget what colors I'm dealing with in CSS when I see it hex value. I would like to use the name instead (e.g color: lightgreen). Is it supported by all browsers? (or only the basic 16 colors)? ...

converting rgb values to System.Drawing

Hi, I've looked around, but don't see this question - maybe its too easy, but I don't have it. If I have file containing color values like: 255, 65535, 65280 ( I think this is green) is there a way to either: convert these to a System.Drawing.Color type or....better yet.. have .NET accept them as is to represent the color? thank...

multidimensional indexing for image retrieval system

Hi please, any one help me to solve my problem: I am working now in trademark image retrieval system , now I was prepared my database space (i.e I compute more than one color features like color histogram , Mean Color, moment set ...), and I was used the distance measures to retrieve the images which are similar to the query image an...

Data grid view header Grid color

This is a VB .NET application where we are showing the output of a SQL statement in a Datagrid view. using .NET 2005. We need to get the seperators of the headers on the grid control to be the same colors as the GridColor on the form. See the picture below: We've tried looking through all of the properties of the DataGridView contr...

delphi TRichEdit Set background color excluding spaces

Hi! I found this code over the net. This puts background color to the selected texts on Trichedit: uses RichEdit; procedure RE_SetSelBgColor(RichEdit: TRichEdit; AColor: TColor); var Format: CHARFORMAT2; begin FillChar(Format, SizeOf(Format), 0); with Format do begin cbSize := SizeOf(Format); dwMask := CFM_BACKCOLOR; ...

How to output my ruby commandline text in different colours

How can I make the puts commands I output from a commandline based ruby program colour? I would appreciated any references to how I call each different colour also. Lets say we start with this.. Puts "The following word is blue.. Im Blue!" Puts "The following word is green.. Im Green!" Puts "The following word is red.. Im Red!" And I...

Coloration of UIButtons of type UIButtonTypeRoundedRect

I would like the rounded rectangle portion of the subject type of UIButton to be a solid custom color I specify. I understand that . setTitleColor : changes the text color . backgroundColor : changes the color of the four pie-shaped corner pieces behind the rounded rectangle The question is how to change the color of the rounded recta...

UINavigationBar buttons color

Hello, How to change the color of the button in the UINavigationBar? For example, I use UINavigationBar with light gray background, and I need the buttons to be dark gray (almost black). It will be cool to have one solution for all button types, i.e. back button, button with image, button with text thanks ...

Link for Jeffs VS Color Theme?

http://www.codinghorror.com/blog/files/exported-font-and-colors-for-jeff-atwood-sept-19.zip The Link is not working, anybody has a mirror, or an export for VS 2008? ...

Color Logic Algorithm

We are building a sports application and would like to incorporate team colors in various portions of the app. Now each team can be represented using several different colors. What I would like to do is to perform a check to verify whether the two team colors are within a certain range of each other, so that I do not display two si...