Questions tagged [pixel]

A pixel is the smallest unit that can be represented or controlled on a display. The word pixel is derived from the phrase "picture element".

4067 questions
10
votes
3 answers

How to lighten picture in C# without actually iterating through all picture's pixels?

I'm having problem with lightening picture. I know I could do this by increasing/decreasing pixel's values, however it's not what I'm looking for. I've been told that there's a way that do not require to iterate through all pixels and that it is…
Patryk
  • 3,042
  • 11
  • 41
  • 83
10
votes
2 answers

C++ Getting RGB from hBitmap

Working with bitmaps is very new to me so I've been really struggling with the online tutorials and strategies that I've read through. Basically my goal is to scan the screen for a particular RGB value. I believe the steps to do this is to capture…
Mike
  • 199
  • 1
  • 2
  • 9
10
votes
2 answers

Converting long/lat to pixel x/y, given a zoom-level

I'm trying to develop a page in ASP.NET that will act as a tile-server for a Google Map It will pull a collection of latitude/longitude points from the database, then render them as small red dots on a transparent background, given a zoom-level…
Jonathan
  • 32,202
  • 38
  • 137
  • 208
10
votes
2 answers

Moving an image to the bottom

I am making avatars with PHP GD. There's annoying space between the avatar's feet, and the bottom of the image. I want to possibly get rid of that space by "pushing" the avatar down to the bottom (see below). Here's the original image that I don't…
Anonymous
  • 553
  • 5
  • 17
  • 41
10
votes
3 answers

pixel font in HTML/CSS

I try pixel fonts from http://www.fontsquirrel.com/fonts/list/style/Pixel but It's not perfect in the browser and disable anti-aliasing is not an official CSS property (or don't find good sample). I found this old question : Is it possible to…
benoît
  • 1,473
  • 3
  • 13
  • 31
10
votes
2 answers

setRGB() in java

I am using setRGB() for changing the values of the pixel of an image. int rgb=new Color(0,0,0).getRGB(); image1.setRGB(i,j,rgb); //where i,j is the boundaries of the image Here,i am setting all the pixel values with white. But the change is not…
Rohit
  • 635
  • 6
  • 12
  • 22
9
votes
2 answers

How to determine and interpret the pixel format of a CGImage

I'm loading this (very small) image using: UIImage* image = [UIImage named:@"someFile.png"]; The image is 4x1 and it contains a red, green, blue and white pixel from left to right, in that order. Next, I get the pixel data out of the underlying…
Matt Comi
  • 610
  • 6
  • 9
9
votes
6 answers

How do I correctly translate pixel coordinates to canvas coordinates in Android?

I am capturing a MotionEvent for a long click in an Android SurfaceView using a GestureListener. I then need to translate the coordinates of the MotionEvent to canvas coordinates, from which I can generate custom map coordinates (not Google Maps).…
Phil
  • 35,852
  • 23
  • 123
  • 164
9
votes
1 answer

iPhone - getting the size of a view in pixels

I have a camera taken picture, and I'd like to resize it to the exact size of a view. But... bounds.size on an iPhone 4 does not take account of the retina display. I'd like a code that can give me the real pixel size of the view, so it can work on…
Oliver
  • 23,072
  • 33
  • 138
  • 230
9
votes
2 answers

Getting pixel color in C++

I would like to get the RGB values of a pixel at different x, y coordinates on the screen. How would I go about this in C++? I'm trying to create my own gaussian blur effect. This would be in Windows 7. Edit What libraries need to be included for…
rectangletangle
  • 50,393
  • 94
  • 205
  • 275
9
votes
2 answers

Android OpenGL Screenshot

I've searched a lot about taking screenshot of my OpenGL object on Android and come up with this solution. It worked great but in my case I have camera view and opengl view(with transparent background) on top of camera view. So what I want to do is…
Alex Bush
  • 735
  • 1
  • 13
  • 26
9
votes
2 answers

How to access pixels data from ID3D11Texture2D?

I'm using Windows Desktop Duplication API to make my own mirroring protocol. I have this piece of code : // Get new frame HRESULT hr = m_DeskDupl->AcquireNextFrame(500, &FrameInfo, &DesktopResource); if (hr == DXGI_ERROR_WAIT_TIMEOUT) { *Timeout…
X6Entrepreneur
  • 971
  • 2
  • 10
  • 30
9
votes
2 answers

Image processing and Computer Vision

I would like to use Smalltalk (Pharo) to better refactor my image processing and computer vision code/algorithms, written in other languages. I have not found a lot of examples online where Smalltalk is used for processing images (or video frames).…
9
votes
3 answers

Pyqt get pixel position and value when mouse click on the image

I would like to know how i can select a pixel with a mouse click in an image (QImge) and get pixel position and value. Thanks
polyBrain
  • 143
  • 1
  • 3
  • 6
9
votes
1 answer

Embed analytics code within image to be triggered when image is displayed

Is it possible to pack analytics code within an image and have that code fire when the image is loaded on a webpage? The image would be inserted onto a page through a file upload form field such as if I were to add an image to this question where I…
Dale Woods
  • 784
  • 1
  • 13
  • 31