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
0 answers

Android getPixel Color of a scaled bitmap

I want to get a color of a pixel of a scaled Bitmap. I tried: imgView.setImageBitmap(scaledBitmap); but I'll only get the message: Can't call getPixel() on a recycled bitmap I don't want to touch the screen like in this article: Get touched…
MFC_Starter
  • 173
  • 1
  • 2
  • 11
0
votes
1 answer

why is the pixel coordinate in x,y plane x + y*width?

I'm currently learning about opengl and I don't understand how the pixel coordinate works. First, the x, y coordinates would go into a double loop until x < width and y < height, and within that loop, the pixel coordinate is equal to x + y*width and…
Jason J.Y. Kim
  • 183
  • 2
  • 12
0
votes
0 answers

GetPixel() not working correctly Windows API C++

I'm writing a program that reads each pixel of a window and store it in an array of bytes as black and white, each bit of the bytes is a black/white value. But GetPixel() doesn't seem to work the way I expected. Here's the part of the code for…
Tyler Tian
  • 597
  • 1
  • 6
  • 22
0
votes
0 answers

Is there a way to getPixel(x,y) without a bitmap?

Hi everyone. So I asked a question about custom shaped buttons yesterday and it got downvoted. I have done more research since and I think I'm ready to ask something more specific. Basically, I need to turn each portion of this pie into a button.…
0
votes
1 answer

Small Basic - GetPixel() always returns #000000 with Turtle

I have yet to see this question be asked or answerd anywhere, so I thought I should try here. Not being that familier with Small Basic's language logic, i'm trying to just create my own little programs to learn the language better. However, recently…
EpicMinecartz
  • 39
  • 2
  • 5
0
votes
0 answers

pixelGetColor in Java to print a color

//package mci; import java.awt.*; import java.awt.event.*; import java.awt.geom.GeneralPath; import java.awt.geom.Arc2D; import java.awt.geom.Ellipse2D; import java.awt.geom.GeneralPath; import java.awt.geom.Line2D; import…
Sayiro
  • 1
  • 2
0
votes
1 answer

Jython: Need to open two picture and copy the 2nd picture to the 1st's picture bottom right Corner (Sorta like a logo)

I am trying to copy pic2 to pic1's bottom right corner (Adding a logo to a picture) Im pretty sure this is the part of the code that im having difficulty with as I cannot figure out whats next after the two getPixel statements. for x in range(0,…
Tony
  • 1
  • 1
0
votes
1 answer

Bitmap.getPixel in SurfaceView

I have this code where there is a Backgroung under an Hand, both a Bitmap images. Now, i have to control with an onClick method if the click touches the hand or not. For this, i wrote here and some guys tell me to use a method called…
LolloAAA
  • 112
  • 10
0
votes
1 answer

Get pixel color from bitmap data at specified coords [x, y]

I want to get pixel color on raster coordinates like for example: [0,0] - pixel in first row and first column (top left) [0,1] - pixel in first row and second column and so on. I'm loading my bitmap like so: BitsPerPixel = FileInfo[28]; width =…
ProXicT
  • 1,903
  • 3
  • 22
  • 46
0
votes
1 answer

getpixel RGB colour accuracy

Can I ask someone to review my code please. Its an android application that looks at pixels in the center of the bitmap and displays the values to the user. The results seems to be inaccurate when i look them up online, often appearing bluish or…
leo666
  • 27
  • 3
0
votes
3 answers

AS3: How to access pixel data efficiently?

I'm working a game. The game requires entities to analyse an image and head towards pixels with specific properties (high red channel, etc.) I've looked into Pixel Bender, but this only seems useful for writing new colors to the image. At the…
Jono
  • 3,949
  • 4
  • 28
  • 48
0
votes
3 answers

Int RGB to HEX values

Hi guys so basically im building an android application that can display colour information with use of the camera. currently the app is getting pixel information and displaying RGB values in a textview. I would like to expand it and add a textview…
leo666
  • 27
  • 3
0
votes
0 answers

Getting pixel rgb value using writeablebitmapex c#

I'm creating an app that allows the user to upload/take an image and then see the rgb code from a pixel in that image. ATM I'm trying to get a pixel rgb code to show in the ui under the image. But I'm struggling to get any data at all. At the…
0
votes
1 answer

camera image getpixel colour for android app issue

Im pretty new to JAVA and this is my first stackoverflow post so I will try and be specific! Well im trying to create an android application where the user can take a photo using the phones camera.the photo gets returned and placed with in an image…
leo666
  • 27
  • 3
0
votes
1 answer

Android bitmap tint, getPixel error

So, what I am trying to do is if I click the button, it will tint a image that is on the same screen with orange color (70%). Button OrangeButton= (Button) findViewById(R.id.OButton); OrangeButton.setOnClickListener(new…
Jieun Chon
  • 139
  • 1
  • 10