colors

Color differences between cocoa and photoshop

I'm having some trouble with colors in interface builder and cocoa. I built out my interface in photoshop, and when i copy the RGB values from photoshop and set my UI elements in interface builder, or through code, the colors are not even close. I've messed around with setting color profiles in photoshop but can't seem to find one that m...

Visual Studio 2010 URL Hyperlink color - is it possible to not use this?

Visual Studio 2010 "helpfully" detects URLs and colors them blue (by default). It will do this regardless of context - whether the URL is in the midst of XML, or it's in a comment, or it's a string in code, etc. I find this distracting. The URLs are part of their context. I'm not coding in Visual Studio in order to click on hyperlinks. ...

How can I change the color of a sprite without changing the color of the border?

I have this code public function TalentBox(x:int, y:int, arg_color:int = 0xFFFFFF):void { this.graphics.beginFill(arg_color); this.graphics.lineStyle(1.0, 0x000000, 0.7); this.graphics.drawRect(0, 0, 7, 13); this.alpha = 1.0; this.x = x; this.y = y; this.graphics.endFill(); } Where I construct the class (th...

Setting the color of each plot point in a Flex plotchart based on a numeric property of the point object

Hey, I'm new to flex, and I'm working on a plotchart. Each point in the chart is an object with multiple variables. I wanted to know if I could take a numeric variable from this object, and use it to change the color of the plotted point. In this case, the numeric value is a number between 0 and 100 that represents a percentage of life...

Programmatically change system color profile?

Windows 7 seems to unload my monitor's color profile and fall back to some default one whenever certain things happen on the computer. It can be fixed by going into Control Panel, opening the Color Management application and twiddling the ICC profiles (changing the default profile to some other one and then switching it back to my own). ...

C# Create Instance of Color from any supported Format (Win.Forms Properties -> Color)

Hello What is the best way to instantiate a new Color from any supported value, like for example "FF00FF11" or "Gray" or "234,255,65"? I need to generalize maximum as possible this implementation, but can't find a way to do it. With System.Reflaction I can get the value for enumerator KnownColor, but how can I distinct this "FF00FF11"...

[MFC] CMFCRibbonColorButton how to get the color

Dear All, I would like to access to the user selected color in a color pallete added to a Ribbon bar. By now I have created the Ribbon button, added it to the panel, added an event to handle the "click" on that button and overwritten the OnEraseBkgnd(CDC* pDC) in my view class. I present some code snippets. I at this stage I am not abl...

change certain colors of an image on website using php

Hello, I'd like to change certain color in an image on a webpage based on user selected color, it this possible using php or javascript. if it not possible or will be difficult, how do i do it using flash? please help me with sample code or website. thanks ...

What is the WPF equivalent to ControlPaint.Light?

What is the wpf equivalent to ControlPaint.Light? http://msdn.microsoft.com/en-us/library/3wz9t9fy%28VS.80%29.aspx Given that WinForms uses System.Drawing.Color and wpf uses System.Windows.Media.Color ...

How can I fill a Rectangle with a Hexadecimal color value?

'#10eeee' Here's what I'm trying to do: groupRectangle.Fill = Color.FromHex? Thank you for your time! ...

Java - How to remove JTable cell bgColor when hovering on another cell ?

I have created my own TableCellEditor for a JTable column to do some special stuff while editing the cells of this column. In that TableCellEditor i define a color when a cell in that column is hovered, like this : public Component getTableCellEditorComponent(JTable table, Object value,boolean isSelected, int row, int column) { i...

Android textview outline text

Is there a simple way to have text be able to have a black outline? I have textviews that will be different colors, but some of the colors don't show up on my background so well, so I was wondering if there's an easy way to get a black outline or something else that will do the job? I'd prefer not to have to create a custom view and make...

Help with editing a png photo, I need to change the colour

I have a logo that needs to be changed to a pantone colour but the only way I could change the colour was if I live traced it but I lost some detail. So I was wondering if there is another way I can do this in any of the adobe software programs without losing any of the quality. Thanks With the website listed below I was able to change ...

How to make 'Shoulda' test output easier to read and in Colour!

I currently working on a project which uses Spree Cart and which has hence forced me to switch from testing with RSpec to testing with Shoulda. I really like the output I get from rspec and am wanting to get similarly readable output using Shoulda. Specifically how do I achieve similar output as I would achieve with the rspec command ...

LaTeX \cellcolor results in cell overlap in PDF

I've got the following table: \begin{table}[hbtp] \caption{Autocompletion example} \begin{tabular}{c|l@{}@{}l} & \multicolumn{2}{c}{A} \\ \hline 1 & \multicolumn{2}{l}{test} \\ 2 & te & \cellcolor{black}{\color{white}st} \\ \end{tabular} \end{table} It's structured like this to make the se...

How do I plot the X and Y axes in a JPEG image?

This is related to http://stackoverflow.com/questions/3181290/matlab-how-to-avoid-jagged-image I want to plot the symbol "+" which represent the x,y coordinate. I used jpg as background while ploting. The color of the "+" is blue and plotted on the same image. There were many x,y coordinate which I read through LOOP. My problem is th...

Is it possible to reuse an instance of ColorFilter?

I'd like to dynamically change color of a bitmap in an Android application. I'm using Paint.setColorFilter() to do this but I'd like to avoid creating multiple instances of eg. PorterDuffColorFilter inside the game loop. Do you know a way to acomplish this? ...

Selecting colors that are furthest apart

I'm working on a project that requires me to select "unique" colors for each item. At times there could be upwards of 400 items. Is there some way out there of selecting the 400 colors that differ the most? Is it as simple as just changing the RGB values by a fixed increment? ...

RichTextBox Highlight All Instances of a Phrase

In VB.Net, is it possible to highlight ALL instances of a phrase instead of only a single instance of it, for example: txtView.SelectionStart = txtView.Find("ERROR: Invalid command entered.") txtView.SelectionColor = Color.Red This would highlight "ERROR: Invalid command entered.", however if my RichTextBox text is: ERROR: In...

Can I set a rgba color within a color theme

I read in an old qooxdoo note that "qx.util.ColorUtil now accepts rgba values for cssStringToRgb()". This means to me that qoxdoo has the ability to deal with rgba colors in some ways. But none of the ways I tried to set colors in a theme extending qx.theme.modern.Color has been parsed by qoxxdoo : throw new Error("Could not parse col...