Questions tagged [getpixel]

GetPixel is a Windows GDI API function which retrieves the RGB color value of the pixel at a specific coordinates.

199 questions
0
votes
1 answer

How can I get the color of a Panel pixel at the mouse location (RFC)

I love SO. In 8 out of 10 questions it produces a straightforward and immediately usable answer. Or at least explains why my question is somehow wrong. So I found it strange that I couldn't find an answer to my liking for this simple and, I had…
TaW
  • 53,122
  • 8
  • 69
  • 111
0
votes
1 answer

Detect Touch Event of Windows Phone on any screen

Since, I am new to Windows Phone technology ,so I want to detect touch event of Windows phone screen that means if I have touched on any screen on Windows Phone not necessary in application only outside of application (like start screen,settings…
0
votes
2 answers

PixelGrabber.getPixels returns values out of the range 0-255

I need to load an image, and get the values of the pixels of the image across breadth and width. I know I need to use PixelGrabber and Image but I'm unsure of how to do it. My code till now. (Assuming all the required libraries are imported and this…
Manoj
  • 961
  • 4
  • 11
  • 37
0
votes
2 answers

Capture the browser screen as JPG/PNG/etc with Flash?

Is there a way to create a screenshot of the browser in Flash? I know that in Java this is possible, and it will popup a dialog asking for trusting the signed Applet, but is there a way to do this in Flash?
Tower
  • 98,741
  • 129
  • 357
  • 507
0
votes
1 answer

why the pixel set by setpixel returns a different value in getpixel ?

here is my scenario: I'm using color.fromargb in C# to get a color out of an int upto 800 (which can be reversed by toargb). I'm setting a certain pixel( eg: 0,0) in a bitmap to that color and saving it as jpg and when using getpixel to get that…
Arash Mhd
  • 93
  • 6
0
votes
1 answer

Is it possible to make your own winapi function like getpixel to work on windows?

Is it possible to make your own winapi function like GetPixel that work on windows, if it is what steps should make?
tonni
  • 1,225
  • 4
  • 19
  • 35
0
votes
3 answers

Is getPixel and setPixel available for Images in Corona SDK?

I am trying to understand if it is possible to access (read / write) single pixels within an image in Corona. Looking at http://docs.coronalabs.com/api/library/display/newImage.html and surrounding documents seems its not available, but I would…
Piotr
  • 1,597
  • 3
  • 18
  • 25
0
votes
1 answer

covert array pixel from image to color to compare

I am using the code below to get pixel by supplying the bitmap public int[] foo(Bitmap bitmapFoo) { int[] pixels; // Bitmap bitmapFoo ; int height = bitmapFoo.getHeight(); int width = bitmapFoo.getWidth(); pixels =…
Jason Wood
  • 89
  • 3
  • 14
0
votes
2 answers

compare 2 images to avoid duplication

I am comparing 2 similar images and would like to see if both are similar .Currently I used the code: public void foo(Bitmap bitmapFoo) { int[] pixels; int height = bitmapFoo.getHeight(); int width = bitmapFoo.getWidth(); pixels =…
Jason Wood
  • 89
  • 3
  • 14
0
votes
1 answer

Interweaving two pictures

I am trying to interweave two pictures. Picture 1 Picture 2 To This def interWeave(pic, picture): w=getWidth(pic) h=getHeight(pic) newPic=makeEmptyPicture(w,h) for x in range (0,w): for y in range (0,h): …
user3956566
0
votes
0 answers

Using byteArray with getPixel (no 's') then setPixelS

Here is what I am trying to do: one byteArray (colorsByteArray) holds color values, that I created with the "getPixels" method; for every pixel on screen, I make calculations and depending on that I get a rank that I use to retrieve the proper…
Oggy
  • 83
  • 8
0
votes
1 answer

How to get the color of a pixel

In my code below....i wish to add a yellow bar at the bottom if upon firing a bullet, the bullet reaches the moving bar at the top(which is a trail of alternative yellow and cyan boxes) and touches it at a yellow box.For that what I am planning is…
Suraj Pandey
  • 31
  • 1
  • 7
0
votes
1 answer

getpixel from externan application MFC

the color is #B38300 but it returns me #074092 I'm trying get pixel color of 3D Application. ::SetForegroundWindow(tempHWND); Sleep(2000); HDC hDC = ::GetDC(tempHWND); COLORREF rgb = ::GetPixel(hDC,50,60); int redValue = GetRValue(rgb); int…
Klasik
  • 872
  • 1
  • 9
  • 29
0
votes
1 answer

Grabbing Pixel data from a video strem

I am having trouble if understanding certain coding i am sorry if this comes off as stupid but i have a code to capture a video from my webcam i want to get the RGB valuee from the frame, if this is impossible would have to to save a frame as a…
0
votes
1 answer

Checking to see if the color of a pixel is a predefined system color?

In the following code: Bitmap bmp = new Bitmap((int)ArrayHeight, (int)ArrayWidth, System.Drawing.Imaging.PixelFormat.Format32bppArgb); Graphics gBmp = Graphics.FromImage(bmp); gBmp.CompositingMode = CompositingMode.SourceCopy; …
zetar
  • 1,225
  • 2
  • 20
  • 45