Top "Pixel" questions

A pixel is the smallest unit that can be represented or controlled on a display.

How to get screen dimensions as pixels in Android

I created some custom elements, and I want to programmatically place them to the upper right corner (n pixels from …

android layout screen pixel dimensions
Converting pixels to dp

I have created my application with the height and width given in pixels for a Pantech device whose resolution is 480…

android pixel resolution dpi
CSS: Setting width/height as Percentage minus pixels

I'm trying to create some re-usable CSS classes for more consistency and less clutter on my site, and I'm stuck …

css height pixel
How to read the RGB value of a given pixel in Python?

If I open an image with open("image.jpg"), how can I get the RGB values of a pixel assuming …

python graphics rgb pixel
Convert Pixels to Points

I have a need to convert Pixels to Points in C#. I've seen some complicated explanations about the topic, but …

c# .net pixel point
Get pixel's RGB using PIL

Is it possible to get the RGB color of a pixel using PIL? I'm using this code: im = Image.open("…

python image python-imaging-library rgb pixel
c++ and opencv get and set pixel color to Mat

I'm trying to set a new color value to some pixel into a cv::Mat image my code is below: …

c++ opencv image-processing pixel mat
Count all values in a matrix greater than a value

I have to count all the values in a matrix (2-d array) that are greater than 200. The code I wrote …

python arrays coding-style numpy pixel
What's the best way to set a single pixel in an HTML5 canvas?

The HTML5 Canvas has no method for explicitly setting a single pixel. It might be possible to set a pixel …

html canvas pixel
Calculating width from percent to pixel then minus by pixel in LESS CSS

I will calculate width in some element from percent to pixel so I will minus -10px via using LESS …

css less pixel