Get pixel  color

hello,
if u know how to retrieve the pixel color of any specified coordinate pixel
,say (x,y) please let me know ,i ll be thankfull to u.

hello,
if u know how to retrieve the pixel color of any specified coordinate pixel
,say (x,y) please let me know ,i ll be thankfull to u.

Similar Messages

  • Get pixel color on screen

      What function do I use to get pixel color of screen
    ChangChiTheGraphics
    chang Chi

    Hello  C.H.Chi
    This code might solve your problem.
    public partial class Form1 : Form
    public Form1()
    InitializeComponent();
    Bitmap myBitmap;
    private void Form1_MouseMove(object sender, MouseEventArgs e)
    Color pixelColor = myBitmap.GetPixel(e.X, e.Y);
    this.Text = pixelColor.ToString();
    private void Form1_Load(object sender, EventArgs e)
    myBitmap = new Bitmap(Properties.Resources.Tulips);
    place a image in your resource file and access from their.
    Kindly mark as answer if found useful.

  • [iPhone SDK] Get pixel color

    In OS X you can use NScolor Getcolor X Y to get the color of a specific pixel in a given image but this does not seem to be in the framework for the iPhone. Does anyone know how to do this?
    thanks in advance
    Dave

    Hello  C.H.Chi
    This code might solve your problem.
    public partial class Form1 : Form
    public Form1()
    InitializeComponent();
    Bitmap myBitmap;
    private void Form1_MouseMove(object sender, MouseEventArgs e)
    Color pixelColor = myBitmap.GetPixel(e.X, e.Y);
    this.Text = pixelColor.ToString();
    private void Form1_Load(object sender, EventArgs e)
    myBitmap = new Bitmap(Properties.Resources.Tulips);
    place a image in your resource file and access from their.
    Kindly mark as answer if found useful.

  • Web applet to get pixel color

    I know nothing about java, but I 'll learn if I need. But first, I need to know if a java web applet can do the goal I need:
    A java web applet that can pass a specific pixel color on the browser windows to javascript. The coordinates of that pixel will stay outside the own applet borders.
    I don't know if this is the right forum, so can you please help me in any way?
    Thanks a lot.
    Julio Morales.

    juliochile wrote:
    I know nothing about java, but I 'll learn if I need.
    But first, I need to know if a java web applet can do the goal I need:Fair enough
    A java web applet that can pass a specific pixel color on the browser windows to javascript. Yes this can be done, but as I recall it was somewhat of a pain. It will also be browser-specific. If you ask me the requirement is probably flawed.
    The coordinates of that pixel will stay outside the own applet borders.Huh? So you need to sample a pixel? This post makes little sense. Post the exact use case. Way too vague.

  • Get pixel  color in J2ME

    hello,
    if u know how to retrieve the pixel color of any specified coordinate pixel
    ,say (x,y) of a canvas please let me know ,i ll be thankfull to u.

    you can try to create a new image and paint on that image.
    Image img = new Image( yourcanvaswidth, yourcanvasheight );
    yourcanvas.paint( img.getGraphics() );
    int [] rgbs = new int[  yourcanvaswidth, * yourcanvasheight ];
    img.getRGB( rgbs, 0, yourcanvaswidth, 0, 0, yourcanvaswidth, yourcanvasheight );
    the rgbs holds RGB values of you canvas.
    hope this will help

  • Please Help Get a Color from Pixel !!!!

    Is anybody know how to get a Color from pixel.
    My program is not Full Screen .
    So i think Robot.getPixelColor() don't suitable.
    Please Help me!

    Robot.getPixelColor() will work fine, but the problem you will have is getting the mouse set to the correct location and getting your application to know where it is: you can do it with win32 calls and JNI. Here are a few that I have found helpful--they are in a VB format:
    Public Const CLR_INVALID = &HFFFF 'not a valid pixel
    Public Const MOUSE_MOVED = &H1
    Public Const MOUSEEVENTF_ABSOLUTE = &H8000 ' absolute move
    Public Const MOUSEEVENTF_LEFTDOWN = &H2 ' left button down
    Public Const MOUSEEVENTF_LEFTUP = &H4 ' left button up
    Public Const MOUSEEVENTF_RIGHTDOWN = &H8 ' right button down
    Public Const MOUSEEVENTF_RIGHTUP = &H10 ' right button up
    Public Const REQUEST_LEFT_CLICK = &H2D 'request left click "-"
    Public Const REQUEST_RIGHT_CLICK = &H2B 'request right click "+"
    Type POINTAPI
    x As Long
    y As Long
    End Type
    Type POINTSTRUCT
    hwnd As Long
    hdc As Long
    ptAbsolute As POINTAPI
    ptOrigin As POINTAPI
    ptLocal As POINTAPI
    ptColor As Long
    sType As String
    retMessage As Boolean
    End Type
    Declare Function GetCursorPos _
    Lib "user32" (ByRef lpPoint As POINTAPI) _
    As Long
    Declare Function SetCursorPos _
    Lib "user32" (ByVal x As Long, ByVal y As Long) _
    As Long
    Declare Sub mouse_event _
    Lib "user32" (ByVal dwFlags As Long, _
    ByVal dx As Long, _
    ByVal dy As Long, _
    ByVal cButtons As Long, _
    ByVal dwExtraInfo As Long)
    Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
    Declare Function GetMessageExtraInfo Lib "user32" () As Long
    Declare Function GetPixel Lib "gdi32" (ByVal hdc As Long, _
    ByVal x As Long, _
    ByVal y As Long) As Long
    Declare Function WindowFromPoint Lib "user32" (ByVal xPoint As Long, _
    ByVal yPoint As Long) As Long
    Declare Function GetWindowDC Lib "user32" (ByVal hwnd As Long) As Long
    Declare Function GetWindowOrgEx Lib "gdi32" (ByVal hdc As Long, _
    ByRef lpPoint As POINTAPI) As Long

  • Get the color of a pixel in an image

    how can i do to get the color of a pixel in an image ???
    Can anyone help me ?

    Hi,
    first of all you need to get the library to transfer your image to java.awt.image.BufferedImage object.
    I know many such libraries. Its depends of what kind of image you have: jpeg, gif, png or other.
    And when you get the BufferedImage of you picture using library, then you can get the color of any pixel in image using int BufferedImage.getRGB(int x, int y) as integer value.
    Victor Letunovsky

  • Get the color of a pixel on the Stage

    Is there a way to retrieve the color of a generic pixel on the screen using the mouse pointer inside the Stage of Flash Player? With the getPixel method of the BitmapData class you can get the color of a pixel only if the mouse is over a bitmap image, but what if I need the color a generic pixel on the screen?

    this takes a snapshot of the pixel below the mouse:
    function eventHandler(event:MouseEvent):void
         var bmd:BitmapData = new BitmapData(1, 1, false, 0x000000);
         var matrix:Matrix = new Matrix();
         matrix.translate(event.stageX, event.stageY);
         //can never remember which way translate works so it could be:
         //matrix.translate(-event.stageX, -event.stageY);
         bmd.draw(stage, matrix);
         var pixelColour:uint = bmd.getPixel(0, 0);
    my blog has more info: http://blog.leeburrows.com/2010/09/bitmapdata-basics-1/

  • Getting the Color of a Pixel in a Image

    Hi. I need to get the Color of the point in an Image (or ImageIcon). I've seen examples but they use BufferedImages.
    Thanks, Bob

    Here is a simple conversion for you:
    BufferedImage bi = new BufferedImage(myImage, myImage.getWidth(null), myImage.getHeight(null), BufferedImage.TYPE_INT_RGB);
    Graphics g = bi.getGraphics():
    g.drawImage(myImage, 0, 0, null);If you are using ImageObserver objects, then replace null with the corresponding ImageObserver object in the BufferedImage and drawImage.

  • I have a video in excellent quality (1280x720 23,976 fps) I burn the dvd in encore cs6 with hd menu and I get pixelated.   I've done transcoding but It downgrade to 480   I need urgent help.

    I have a video in excellent quality (1280x720 23,976 fps) I burn the dvd in encore cs6 with hd menu and I get pixelated.   I've done transcoding but It downgrade to 480   I need urgent help.

    Hi,
    first, sorry if my english sucks jajaa i speach spanish, havent practice my english for a while.
    first i edited my video in premier cc
    sequence 1280X720, 59,94 fps
    48000hz - stereo
    the i linked it with dynamik link to after, make some color correction, etc etc etc
    i renderd in quicktime animation
    my video looks fine in my computer, but when i send my .mov video to encore (cs6) in a HD MENU and standard menú, the image sucks.
    i have done the transcoding in encore, but i doesnt work either. i dont know what else to do.

  • How to get pixel colour?

    Is there any way to get pixel colour from specified point? Example: colour = image.getPixel(x, y);
    J2ME/MIDP 1.0
    Thanks!

    {color:#800000}*I am happy to compare the two pixels of same image using this code in Java:*
    {color}
    Image ori, nw;
    public void init()
    { ori = getImage(getDocumentBase(),"flower.jpg");
    int pxl[]= new int [65536];
    PixelGrabber pg = new PixelGrabber(ori,0,0,256,256,pxl,0,256);
    // Image is stored into Array
    try{ pg.grabPixels(); }
    catch(InterruptedException e) {}
    for(int i=0;i<65536;i++)
    { int p = pxl[i];
    int ri = (0xff & (p>>16));
    int gi = (0xff & (p>>8));
    int bi = (0xff & p); // Take the RGB value of each pixel
    for(int j=0;j<255;j++) // Chk. other similar pixel in color range of 0 to 255
    int q = pxl[j];
    int rj = (0xff & (q>>16));
    int gj = (0xff & (q>>8));
    int bj = (0xff & q);
    if ( (ri==rj)&&(gi==gj)&&(bi==bj)&&(!(i==j)))
    { ri+=70;//if (ri<0) ri = 0;
    gi+=70;//if (gi<0) gi = 0;
    bi+=70;//if (bi<0) bi = 0;
    pxl[i] = ( 0xff000000|ri<<16|gi<<8|bi); // Change value
    else
    pxl[i] = ( 0xff000000|ri<<16|gi<<8|bi);// Keep as it is
    Email : [email protected], Profile: www.aribas.edu.in/Mr.Brijesh_Jajal.htm

  • Pixel Color

    I have an object of "Canvas" and I want to get the Color of the point where the user has clicked. How?

    Fast and dirty: If you are not talking about an applet, you could use java.awt.Robot.
    Better solution:
    In Canvas the entire Canvas gets painted in the paint(Graphics) method. If you paint to an Image, not directly to the canvas, and paint that image to the Canvas to make it look the same, then you can find the color of any pixel by inspecting the Image. See the java.awt.PixelGrabber class on how to get the pixels of an image.

  • Get pixel vi picture control

    Can i get a pixel color value without converting the picture data to an array?
    Seems an unneccesary step in my opinion because internally the array data is available
    anyway.
    Neither the standard palette nor the vi.lib picture vis seems to contain procedures to read pixel values.

    If you are using MS Windows, and the image is displaying on a front panel, there is a Windows API: GetPixel (https://msdn.microsoft.com/en-us/library/dd144909(v=vs.85).aspx) for that.
    George Zou
    http://webspace.webring.com/people/og/gtoolbox

  • How to get background color in MVC programming

    Hi Experts,
    I am new to BSP.
    I am working in CRM 7.0 version and designing a view using MVC method in BSP.
    I have two doubts::
    1. How can i get background color in a view ?
    2. How can i attach a picture, that is in paint-brush, in background ?
    Thanks in Advance.
    Nitin Karamchandani.
    Edited by: Nitin Karamchandani on Jun 3, 2009 8:10 AM

    Hi,
    several html tags have the attribute bgcolor, like
    <body bgcolor="red">  or <body bgcolor="RRGGBB">  where RR, GG, BB is an hexadecimal value according to RGB color palette.
    you can also work with CSS and in this case you affect the attribute style, which is also available in several tags:
    document.body.style.backgroundColor="#EEEEEE"

  • The app icons I have on the iPad have just come up blank with the app name under it. How do I get the colorful icons to appear? The apps do work though

    The Ipad icons are all just a grey box. How do I get the colorful icons?

    First thing to try is a reboot of your iPad. Press and hold the Home and Sleep buttons simultaneously ignoring the red slider until the Apple logo appears. Let go of the buttons and let the iPad restart. See if that fixes your problem.

Maybe you are looking for

  • Quicktime app does not work

    I have just tried to open a TS file on my Mac Pro Yosemite and got a message that ¨ To open this file I needed to download and install Quicktime Mpg2 Playback Component¨, Buy online from http.//www.apple.com/quicktime/mpeg2 which I did. I paid €19.99

  • SharePoint Foundation 2010 SP2 running on Windows Server 2012 R2

    Hello I have upgraded a standalone Windows Server 2008 R2 running SharePoint Foundation 2010 SP2 to Windows Server 2012 R2. The upgrade completed OK and SharePoint Foundation 2010 SP2 is running OK as before upgrade. Is anyone aware of any issues run

  • [SOLVED]problem with UEFI and Windows 8

    Hi guys, I have installed archlinux but have the problem with grub2 and UEFI Im not have  /boot/efi/efi/microsoft/boot/bootmgfw.efi for install grub2: modprobe dm-mod modprobe efivars grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootl

  • How can I read the bootstrap files and extract the fragment-URLs and fragment-numbers in plain text?

    How can I read the bootstrap files of any HDS Live stream and extract the fragment-URLs and fragment-numbers in plain text? Could it be that it is some kind of compressed format in the bootstrap? Can I uncompress it wirh  f4fpackager.exe? Could not f

  • Netweaver 7 (ECC6) issues list?

    Hi, We're currently on 4.6c and going to upgrade to ECC6 with unicode I'm trying to compile a list point taken care converting to unicode from ABAP technical point of view. Does anyone have such a list? Some points i shortlisted are : 1) Use GUI_UPLO