rgb

How to perform RGB->YUV conversion with ActionScript?

How to perform RGB->YUV conversion with ActionScript? Libs? Tuts? Articles? ...

How to perform RGB->YUV conversion in C/C++?

How to perform RGB->YUV conversion in C/C++? I have some Bitmap.. RGB I need to convert it to YUV Libs? Tuts? Articles? ...

Hex colors: Numeric representation for "transparent"?

I am building a web CMS in which the user can choose colours for certain site elements. I would like to convert all colour values to hex to avoid any further formatting hassle ("rgb(x,y,z)" or named colours). I have found a good JS library for that. The only thing that I can't get into hex is "transparent". I need this when explicitly d...

Objective C Find closest color (rgb) match

I have a predefined array of rgb values. I want to be able to compare a user defined color to my array and return the closest match in Objective C. Any help is greatly appreciated. ...

how to get the RGB value of a pixel inside the Form workspace.

im creating a macro and need to check some pixels to make sure the mouse clicks the right spot. How wold you go about checking the RGB value of pixels in c#? ...

RGB to HSV in PHP

In PHP, what is the most straightforward way to convert a RGB triplet to HSV values? ...

How to capture live camera frames in RGB with DirectShow

I'm implementing live video capture through DirectShow for live processing and display. (Augmented Reality app). I can access the pixels easily enough, but it seems I can't get the SampleGrabber to provide RGB data. The device (an iSight -- running VC++ Express in VMWare) only reports MEDIASUBTYPE_YUY2. After extensive Googling, I stil...

Is QImage able to open and render pure 16-bit images?

I think the headline already explains what I want to know. Is there a possible way to open and save images with 16-bit with Qt? And I don't mean the 3*8=24bit or 4*8=32bit, what is quite the same as a pure 8-bit image, I mean pure 16-bit for R, G and B. ...

Color Detection using YCrCb color space?

This code I have found attempt to track red color in RGB color space, // red color detection, turn the detected one into white if (((red > (0.85 * (green + blue))) && (red > 105)) && ((red - green > 73)) && (((green < 150) || ((green >= 150) && (blue > 140))))) { // set the pixel to white red = 255; gree...

Set the LSB of Java java.awt.Color RGB components

Is there a method for changing the LSB value of java.awt.Color RGB components? ...

Mixing two RGB color vectors to get resultant

I am trying to mix two source RGB vectors to create a third "resultant vector" that is an intuitive mix of the first two. Ideally, I would be able to emulate "real paint mixing characteristics", but for simplicity, I am trying to find a method where the resultant looks intuitively like what you'd get from combining the two source rgb's...

Creating a NSColor with RGB value

How do I create a NSColor from a RGB value? ...

Fastest way to compare pixel values between two BufferedImages?

I have a BufferedImage of type TYPE_INT_BGR. I need to do a pixel-by-pixel comparison to another BufferedImage to compute the "distance" between the two images. I have something that works, but is slow. I get a pixel from the "reference" image, break it up into RGB bytes with: int pixel = referenceImage.getRGB(col, row); int ...

Iphone I am using cocos2d and need the rgba value of a pixel on a sprite

I am programing a shooter game in cocos2d for the iphone. I and I want to exclude collision detection an the alpha of my sprite. How do I read the RGBA value of the single pixel. Thanks for the help. ...

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 ...

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. ...

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...

RGB gradient based on percentage of file loaded

I'm working on my first Flash project, and for my preloader I'd like to do a really simple gradient based on the percentage loaded. The preloader says "77% loaded...", where the number 77 is a dynamic text instance called percentLoaded. I'd like the textColor of percentLoaded to change on a gradient from #000000 to #FFFFFF, in gray-sca...

Finding N Distinct RGB Colors

I'm trying to graphically display a graph of N lines and I'm trying to find a way to dynamically assign distinct colors based on how many lines I have. The values in RGB range from 0 to 1. I can't use white because the background is white. I found it easy for N < 7 ie r=(h&0x4)/4; g=(h&0x2)/2; b=h&0x1; This gives me black, blue, gree...

UIColor/RGB Way to go from X Color to Y Color

Hi All I wonder if anyone could suggest the best way to go from one color to another in a gradual process. So - I have a text box which I have a text limit on. I'd like to have the text start at white, but be red by the time it gets to the max text limit. Is there an easy way to do this? I'm unsure really where to start... ...