pixel

Photoshop px vs. OS px

While converting a webdesign given as a photoshop file to html+css, I got confused with font sizes. As seen on the image below, 30 px in photoshop does not equal 30 px in other Windows programs (different on Mac or others?), or browsers. This seems to be unaffected by creating the photoshop image in different resolutions than 72 which is...

WPF PixelShaders: How to create a Temporary Register dependency property?

Hi, I've run out of the 8 possible constant registers in a wpf pixelshader effect. I need access to temporary registers, which I believe are available 6 on a DX 8.1 level gfx cards. Question is: How to create a temporary register dependency property in C# code? Constant registers are created like this: public static readonly Depende...

How to analyze a video stream

Is it possible to analyze a video stream on the fly? For example, say i have a TV tuner installed and want to do some pixel testing every .5 seconds. How would one go about doing analysis? Would it be the same procedure if it was a video file (ie .mpg / .wma)? ...

How to get RGB value of a pixel from a CGImageRef object?

I'm trying to get an RGB value of a pixel from a CGImageRef object. I know that I need to create a context or something but, how do I do this? ...

Plot data reconstruction reading pixel colors from image files

Hi, How can I open and read colors of specific pixels of an image file in Haskell? Which packages, functions do you recommend? You can have a look at the quoted plot and the reconstructed data below for an idea on what I would like to automate. I had my way with this particular figure using Gimp and marking the points on lines manually...

How to get the color of a pixel in an UIView?

I am trying to develop a small application. In it, I need to detect the color of a pixel within an UIView. I have a CGPoint defining the pixel I need. The colors of the UIView are changed using CoreAnimation. I know there are some complex ways to extract color information from UIImages. However I couldn't find a solution for UIViews. I...

How Can I Get Information About the Source Image of a WPF `<Image>` Element?

How can I get information about the source image of a WPF <Image> element? My <Image> element has its Source bound to an ImageSource property, which changes frequently. In my code behind, I need to be able to access the actual width of the current source image file (in regular pixels), for mathematical purposes. My application will pe...

How to use Pixel Tracking across domains in PHP

I understand the basics of pixel tracking, I'm able to insert a pixel that references an image on my tracking domain to other websites. However, how do I increment that actual pixel count on my tracking domain? Is there some kind of log that tells me every time that pixel image was served up? Am i able to do something like: <img src...

WPF Pixels to desktop pixels

I've been linked in the past to this response to a similar question on converting WPF pixel coordinates to desktop ones, however I'm not sure I understand the maths involved. Astonish' answer states that "Pixels per WPF Unit = ConstantWPFUnit size * monitor DPI;" and that "The constant WPF unit size is 1/96." In my case, I've taken the...

What could cause the same browser on different PCs to render the same HTML differently?

I'm stumped. A client and I are both running Firefox 3.0.12 on XP machines. We view the same page in the same browser on different machines and have different results. Note: All IE browsers are consistent on both of machines, and my FF 3.5.1 is consistent with my FF 3.0.12. (He does not have FF 3.5.x installed to compare with). There is...

How to 'Flatten' multiple UIImageViews into ONE?

I have a feeling this is not an easy task but I need to combine or flatten a UIImageView with another UIImage view lying above it. For example: I have two UIImageViews. One of them has a UIImage of a grassy field (1200 x 1200 pixels). The other is a UIImage of a basketball (128 x 128 pixels), and it is positioned above the image of the g...

iPhone Objective C: How to get a pixel's color of the touched point on an UIImageView?

iPhone Objective C: How to get a pixel's color of the touched point on an UIImageView, even if the parent UIView or itself is being rotated by the CGAffineTransformMakeRotation function? Will the view property of the UITouch still correctly return the correct pixel of the touched point even if the UIView/UIImageView is being scaled and ...

Pixel to Centimeter ?

I just want to know if the pixel unit is something that doesn't change, and if we can convert from pixels to let's say centimeters ? ...

How to NSLog pixel RGB from a UIImage?

I just want to: 1) Copy the pixel data. 2) Iterate and Modify each pixel (just show me how to NSLog the ARGB values as 255) 3) Create a UIImage from the new pixel data I can figure out the the gory details if someone can just tell me how to NSLog the RGBA values of a pixel as 255. How do I modify the following code to do this? Be Speci...

How many render targets do low end Pixel Shader 2.0 supporting video cards support?

MRT allows for rendering to multiple texture targets in the pixel shader, but I'm not sure how many targets that is. I'm currently using 3 render targets but I may need as much as 5 (though probably just 4). I think the Radeon 9500s are pretty much entry level ps/vs 2.0 cards but I'm really not sure how many render targets it actually s...

Most efficient way to draw individual pixels in OpenGL ES (Cocos2d-iphone)

I'm writing a flood-fill algorithm...it needs to paint individual pixels. What's the fastest way to do this? At first I thought of using cocos2d's drawpoint, but having 320 * 480 vertices doesn't sound too good. Is there a faster way using memset or something? ...

Need a tool for webdevelopment

What tool can I use to displays a picture of a desgin with transparency right over my website? I need to check that my design fits, pixel by pixel, to the wishes of the designer. ...

Measuring the pixel width of a string in Objective C

I need to measure the pixel width of a string in objective C can anyone point me to a link that explains how to do this? I haven't found anything that explains this well. ...

How to read the Color of a Screen Pixel

Okay, I am looking for a function or something that will read the color of a certain pixel on my monitor, and when that color is detected, another function will be enabled. I figure using RGB. All help appreciated. Thank You. ...

Debugging directx pixel/vertex shaders?

I'm trying to figure out how to debug pixel and vertex shaders in DirectX, I've tried using Pix for Windows but find it to be quite buggy and effectively non-operational. Is there an alternative that would allow me to debug these shaders inside my own application? ...