GetPixel is a Windows GDI API function which retrieves the RGB color value of the pixel at a specific coordinates.
Questions tagged [getpixel]
199 questions
0
votes
0 answers
kineticjs zoom extents
Is there a way to zoom extents of a collection of shapes without computing min/max xy's and wh's - very painful when sloping lines are involved.
Perhaps some kind of pixel detection?

Chris Glasier
- 791
- 2
- 10
- 21
0
votes
2 answers
two getpixel method names the same
I am trying to open and read the pixel values for two separate images on the same form in c#.
I get an error reading the following:
Error 1 Type 'imageAlign.Form1' already defines a member called
'GetPixels' with the same parameter
types…

Jason Moore
- 11
- 1
0
votes
0 answers
Read an Image in Java and perform Affine Transforms
So for a class project, I have to read an Image file and performAffine Transforms on it. I found how to do the format using information which is present in the Complete Reference bool using the PixelGrabber class. However, I have to do this for a…

gran_profaci
- 8,087
- 15
- 66
- 99
0
votes
1 answer
GetPixel on DirectX Application
I have the following code:
procedure TForm1.Button1Click(Sender: TObject);
var
XYCoord: integer;
window: hwnd;
c: TCanvas;
result : TColor;
color : string;
begin
c := TCanvas.Create;
window := FindWindow('Atlantica Online', NIL);
…

Michael Grenzer
- 503
- 1
- 9
- 20
0
votes
3 answers
improving speed of GetPixel function in c#
i need to read getpixel of bmp with speed but is very low
i used of LockBits
private void LockUnlockBitsExample(Bitmap bmp)
{
Rectangle rect = new Rectangle(0, 0, bmp.Width, bmp.Height);
System.Drawing.Imaging.BitmapData…

jozi
- 2,833
- 6
- 28
- 41
0
votes
1 answer
CopyPixels method in Bgr32 format
i'm just doing a simple job: Converting a bitmap into an array, then using that array, recreating the bitmap with BitmapSource.Create method.
However, i'm getting the error: "Value does not fall within the expected range". Here's my code.
…

Burak Yavuzalp
- 199
- 1
- 2
- 10
0
votes
1 answer
How to fasten Bitmap.SetPixel without using unsafe method?
How can I fasten Bitmap Set/GetPixel method without using unsafe mode or any other solutions from codeproject like FastPixel or FastBitmap (which actually also uses unsafe mode).

rank1
- 1,018
- 4
- 16
- 37
0
votes
1 answer
Are there similar android methods of java getData().getPixels()?
I'm trying to use the following code of java to read image data on android. Since ImageIO is not supported, what are some ways I may use getData().getPixels()?
By changing BufferedImage into Bitmap, I can get all other codes working besides…

James
- 799
- 1
- 14
- 33
-1
votes
1 answer
How to get pixel data from an image taken by the iphone
the problem isnt getting the pixel data i was able to find some source for that
-(NSArray *)getRGBAtLocationOnImage:(UIImage *)theImage X:(int)x Y:(int)y
{
// First get the image into your data buffer
CGImageRef image = [theImage CGImage];
…

lufthansa747
- 1,923
- 3
- 26
- 39
-1
votes
1 answer
Using GetPixels correctly in Unity
I'm trying to learn how to use the GetPixels function and I'm trying something simple for now - to get the pixels of the current object of a 2 x 2 area. I just want to display the results in the console first so I can better understand the results…

KeepCool
- 497
- 1
- 6
- 24
-1
votes
1 answer
How to use GetPixel() to check different positions
I have a program that HAS to use GetPixel, but in different positions, after reading one value and evaluating it, it has to change the x,y positions and re-evaluate the values of the other function.
I have the current code:
while (true) {
…

Matheus Souza
- 23
- 3
-1
votes
1 answer
Java Change Color Palette of an Image
Hello fellow programmmers!
I am a Java beginner and I have a Java program that takes an image, displays the unedited version, converts it to grayscale and shows the image, and applies a different color palette to the image and then shows it. I am…

JavaNewbie
- 3
- 3
-1
votes
1 answer
Save pixel data in txt format in PIL
My program is to extract the pixel from an image and to save the pixel data in the text file for analysis. My picture is a binary image that gives only 255 and 0 's
Here is the program:
from PIL import Image
im = Image.open("thresh.jpg")
pixel =…

Naveen Raja
- 193
- 1
- 2
- 8
-1
votes
2 answers
How to turn on Color Wrap in JES
I can't find the answer t this anywhere.
I am using JES. I am creating function with images. I need the color values to wrap;
for example:
if red = 250
250 + 20 = 15
instead of
250 + 20 = 255
Can anybody please tell me, how I can achieve this?
user3956566
-1
votes
1 answer
SDL_GetPixel pointer problems
This is my very first question:
First of these 2 functions you see here below works fine to some extent:
Uint32 AWSprite::get_pixelColor_location(SDL_Surface * surface, int x, int y) {
int bpp = surface->format->BytesPerPixel;
/* Here p is the…

Photonic
- 1,316
- 19
- 31