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

Retrieving percentage of colors of a MovieClip

today my question is as follows: I have a game, and one of the phases is that you have to pass a "protective cream" on the doll's body. I already have this effect (image below), I'm using an alpha filter combined with a mask that is drawn. I wonder…
Silvio Luis
  • 193
  • 1
  • 3
  • 11
0
votes
3 answers

Fastest RGB color detection C++

Hi i have used getpixel method, bitblt or what its called (creating bitmap header) and then going though all the values. It is VERY slow. For exapmple if i had to detect something red or specific color it would take very long time. There has gotta…
Hārdža
  • 75
  • 2
  • 10
0
votes
1 answer

Is it possible to get the pixel color in android?

This is my first time that I want to make a simple app that will detect color of the current pixel by specifying X and Y coordinates of the main screen or other app like game. So if it is possible please give me function name or give me an…
ali saasa
  • 1
  • 2
0
votes
0 answers

how to get only draw part from UIVIEW(work as drawpad)?

https://github.com/acerbetti/ACEDrawingView above link i use in this project as reference for drawingpad application. now i want only drawable part from the drawpad. like here is in drawpad,i draw "a" in it.now i want only area of "a" which i have…
0
votes
1 answer

Trying to convert a bitmap into an homemade text format

Here is my code, it is simple and should work, but doesn't and it's driving me crazy. I troubleshooted every part of it, everything is working as expected but when i open my file no matter what composes my bitmap it's just full of 0. Here's the…
FFA702
  • 29
  • 3
0
votes
1 answer

how to get pixel color using byte array in Android

In my Android project, Here is my code. for (int x = 0; x < targetBitArray.length; x += weight) { for (int y = 0; y < targetBitArray[x].length; y += weight) { targetBitArray[x][y] = bmp.getPixel(x, y) == mSearchColor; } } but this…
phalanx89
  • 5
  • 3
0
votes
1 answer

Android finding x and y positions with bitmap

I am having a some trouble figuring out my error. I am trying to find an x and y position of a bitmap based on the colors contained inside it. In this case I am using a blue color as a marker that has already been added to the background and finding…
Andrew87
  • 3
  • 3
0
votes
0 answers

Data from image pixel to corresponding vertice

I am trying to put my face recorded from camera and make it a little bit bumpy. Im taking the video from camera, and putting it on a plane via texture. From the facedetection I have a heightmap-like grayscaled image, from which i want to take pixel…
mjanisz1
  • 1,478
  • 3
  • 17
  • 43
0
votes
1 answer

firefox drawWindow() canvas function using the add-on sdk

I've exactly the same issue : How do I use the canvas drawWindow function in an addon created using the addon sdk? But the solution doesn't work. If drawWindow can't be use with the firefox add-on sdk, there is an other solution to put a clicked…
0
votes
0 answers

Drawing a bufferedImage in a non jframe context

Okay, so my friend and I are making are a game that requires some pixel analysis for the rectangles, and I wrote the code to analyze the rectangles, and It works swimmingly, However, when I try to draw the bufferedImage it doesn't show up. The main…
jaronoff97
  • 366
  • 3
  • 15
0
votes
0 answers

How to calculate scale size of sprite object in unity

I have image of sprite having size 90 X 120 and I want to load that image in unity, Now when I am loading that image it is look like stretch in height and width I am setting scale value of the object but It is look like not proper as I am just…
Crazy Developer
  • 3,464
  • 3
  • 28
  • 62
0
votes
1 answer

BitLock-GetPixels. Time and PixelFormat

Okay, I've created two programs. One that uses GetPixels and another that uses LockBits. My GetPixels program is as follows... The stripe picture referred is a 200x200 jpg Stopwatch GetTime = new Stopwatch(); Bitmap img = new…
rguarascia.ts
  • 694
  • 7
  • 19
0
votes
1 answer

Fast way to manipulate each pixel from ImagePlus

Hello I need to access every pixels of an ImagePlus for image analysis. Because of the huge amount of images to process, I was wondering if there are special effective ways/methods to access and/or modify each pixel from an imagePlus? The only idea…
kaligne
  • 3,098
  • 9
  • 34
  • 60
0
votes
1 answer

How to find the X, Y position of an object in external swf

I have a SWF application (A) that has a green object which moves on both X and Y axis, this SWF application only runs with its SWF loader (B). I created another SWF loader (C) which loads SWF loader (B). I want to know if it is possible to get the…
0
votes
1 answer

VB6 PictureBox.Point or GetPixel always return -1

I have a picturebox control where I load a 50x160 BMP image, using this: Picture1.Picture = LoadPicture(App.Path & "\test.bmp") Once the picture is loaded, I want to get the color of a specific pixel: GetPixel(Picture1.hDC, 0, 0) Picture1.Point(0,…
cdonts
  • 9,304
  • 4
  • 46
  • 72