Getting color of pixel on screen

I am making an applet and I need to find the color of a specific pixel printed on my screen. How am i to achieve this.

http://forum.java.sun.com/thread.jspa?threadID=380239

Similar Messages

  • 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

  • , why do I get "Color Finesse requires a minimum screen size of 1024x768 yet I've got two full HD sc

    Hello,
    Once I try to open 'full interface' on color finesse 3 on After Effects CS5.5, why do I get: "Color Finesse requires a minimum screen size of 1024x768" yet I've got two full HD screens?
    Thanks.

    In addition to Dave's suggestions, if you haven't already done so, restart your computer. All we do is ask the OS for the screen size and check against 1024x768. We've seen on Windows that the OS gets confused sometimes and reports an incorrect size. Restarting fixes that.
    When checking your screen size, be sure to subtract the size of the toolbar and any similar add-ons you might be running. Those all reduce the usable screen size, and we've seen cases (mostly laptops) where that reduces the height of the screen below 768.
    Bob Currier
    Synthetic Aperture

  • I have a rotating color wheel on my screen.  How do I get rid of it?

    I have a rotating color wheel on my screen.  How do I get rid of it?

    Mac OS X: How to quit an unresponsive application using Force Quit

  • I updated my iMac to lion and now when i leave my desktop and it goes into stand by it like a picture is taken of the screen and when i want to log in the mouse point removes pixels so i can get to the user login screen this never happened ith snow leopar

    i upgraded my iMac to lion and now when i leave my desktop and it goes into stand by mode, its like a picture is taken of the actice desktop and when i want to log in the mouse point removes pixels so i can get to the user login screen this never happened ith snow leopard. does anyone else experience this and is there a fix?

    I have an iMac 8, 1 that I upgraded Leopard to Snow Leopard.  It was totally updated with the latest from Apple when I bought and tried installing Lion.  The upgrade failed, shot my OS and I couldn't boot.  Had the constant spinner on a grey screen..  did a format of the drive, hdd repair and everything came back clean... got back to Snow Leopard and all the updates on it again and then retried the Lion thing... same bs... dead duck.  Crashed my system one too many times.  I can't see where a few small changes, mostly app related can be classified as an OS upgrade and is not compatible with my iMac.  I have the stuff running on my Mac Pro but have yet to notice anything impressive.  I've always used F3 and really didn't require Mission Control.  Just open you app folder for launch pad... duh?  I use the hot corners anyhow.  As far as Safari is concerned... as a power user, Apple missed the boat on that for me.. full screen etc.. Wow.  I don't like the new Mail either..
    As you can see/read, I'm less than impressed with this release from Apple but I own so many of their products that I will have to put up with it for now... somehow the MS logo should apply to this release Steve.

  • Well my ipod 4th gen was updated it shut off and now when i try to turn it on it stays on the apple logo for abit then gets stuck on a white screen od blue or mixed colores i really need help fixing this plzz help :(

    Well my ipod 4th gen was updated it shut off and now when i try to turn it on it stays on the apple logo for abit then gets stuck on a white screen od blue or mixed colores i really need help fixing this plzz help

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • LaserJet Pr0 200 color MFP M276nw Touch Screen not Working correctly

    Hello, I'm having an issue with a LaserJet Pr0 200 color MFP M276nw Touch Screen not Working correctly. I have followed the instructions to reset the printer, but now am unable to select 'English' as my language because every time I select the 'English' option 'Spanish' is selected. I am then given two options to select 'Si' or 'No' both of which can not be selected on the touch screen?
    Anybody know of a way round this?

    Hi @dnhowes ,
    I see that you are having issues with the touch screen not working correctly. I will do my best to help you.
    Make sure the printer is connected directly to a wall outlet. (don't use a power hub or a surge protector) This ensures the printer is receiving full power and may help this situation.
    Was it the Nvram reset back to factory settings that you tried or a hard reset?
    Try selecting the option on the display a little higher above the icon to see if that helps. Some touch screens are finicky.
    I find that on the Lab printers when I am selecting different menus.
    If the issue continues, please call our technical support at 800-474-6836 for further assistance. If you live outside the US/Canada Region, please click the link below to get the support number for your region.
    http://www8.hp.com/us/en/contact-hp/ww-phone-assist.html
    Have a nice day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • Colors different in full screen view

    I could as well post this under "Mac OS X", but I think here in the Aperture forum it is more likely to get help.
    I have the following problem: when viewing images in full screen mode, their colors are different than in the normal windows mode. The difference is not subtle, but severe. For example blue skies have a lot more red and appear much more saturated.
    While trying to narrow down this problem I found out the following (and here it starts to get really strange): I exported one image as a JPEG to the desktop to see what the colors would be. The thumbnail then had the oversaturated colors of the full screen view in Aperture. When clicking on it, Preview showed the correct colors with a normal blue sky. When switching to slideshow mode in Preview, again the oversaturated colors from Aperture full screen came up.
    When I disconnect my 23" Cinema Display, the full screen view of Preview shows the same colors on my PB like in window mode. So I believe it has something to do with my 23" CD.
    Can anybody come up with a good explanation for this behaviour? Could this be some kind of a profile problem?
    Any help appreciated
    PB G4/1.5   Mac OS X (10.4.6)   Aperture 1.1.1

    I read Zausel's post that referred to the Colorsync Utility. Under the Devices tab I was able to see both my monitors and confirm they were both assigned the proper profile (they were). There is an option to "Make Default Display" in this utility. I noticed it was defaulting to the Color LCD of the MacBook Pro. I had already set my 23" to my main screen in the display control panel by dragging the menu bar to the big screen in the layout tab. I selected the 23" screen in Colorsync Utility and selected it as the "Make Default Display". Now my full screen previews are accurate. Aperture must use the display profile for normal view screens, thumbnails, light table, but change to the default display profile when it does full screen. (previously, it was using the profile for the 15" MBPro screen for full screen views; thus the inaccurate color) Now everything is in sync and my color looks good on the big display in both normal view and in full screen. Hope this helps someone else.
    Ben
    MacBook Pro 15   Mac OS X (10.4.6)   2 GB Ram
    MacBook Pro 15   Mac OS X (10.4.6)   2 GB Ram
    MacBook Pro 15   Mac OS X (10.4.6)   2 GB Ram

  • How do change the text color in the variable screen ?

    Hi Experts ,
    I would like to know about , How do change the text color in the variable screen ?
    Using web templates (Analytical) can get the output. It has the variable screen contains 6 fields (Company code, Country , Region , COB, Plant and Purchasing Group). I want to make RED color text on Plant. Please help me .
    Thank you ,
    Prasad.

    Hi,
    I am looking for nearly the same. What I have found is that it seems to manipulate the SAP theme that is used in standard when template is executed in the portal. Just display the source code of the HTML and there you will see the included SAP theme (normally SAP_TRADESHOW). Then you have to go to the SAP portal and change this stuff. But for that you have to know where to find it and what impact this change has.
    I am not pretty sure if this is the right way. But as I want to change the standard layout of a whole template to a customer specific layout I think there is no other way in BI7.0.
    Regards,
    Peter

  • IMac G5 - Pixelated Finder screen

    Hi guys,
    Wondered if anyone can shed any light on this. I keep getting a pixelated finder screen - not all over but as if the screen hasn't rendered properly. It happens infrequently when I boot up in the morning & it also occured when the computer was running the black swirly screensaver - I clicked the mouse & it left a kind of line of black pixels. If I do a re-start it seems to be okay. The compuer itself seems to be running okay - I'm using quark, illustrator, photoshop, entourage etc.
    This morning I had a bit of a scary moment: Booted up & again there were traces of white/grey pixels. When I booted up entourage, it opened as a black image. It allowed me to quit. I went to the finder menu & restart & the restart box came up as as a black box. I clicked in the area where I knew the okay button was & the computer restarted fine.
    Anyone any idea what is going on? Do I need a new graphics card? The computer is only 15 month old. Surely it can't be on it's way out already? We've had some really hot weather - do you think it's the heat?
    Any help greatly appreciated, I'm working for myself here at home & it's a lonely thing when your main business tool starts going a bit wappy!
    Thanks in advance, Mel

    Mine too! Within the last week the screen started flickering and has now settled into an almost monochrome blue. My photoshop defaults are white and blue; even the flurry screen saver is on a field of blue. What gives? The RGB now seems mostly B.
    My iMac g5 17'' display has turn bluish, but when i
    connect an external display it seems fine. Does
    anyone know what's wrong?
    20in iMac G5   Mac OS X (10.4.9)  

  • [SOLVED]How to get colorful output when pipe yaourt's STDIO to less?

    Hello, second post to NC.
    My question is how to get a piped(e.g. pipe yaourt's STDOUT to less) program's colorful output on screen without such option like '--color=always'.
    Before post this, I've configured less's default behaviour in "~/.zshrc" with following
    less() {
    env LESS=R less "$@"
    And When I run:
    $ dmesg --color=always | less
    Everything works fine(I get good, colorful output), but when I run this:
    $ yaourt -Qe --date | less
    Seems that I can only get grey output on terminal emulator (without 'less' I get colorful output).
    Does anyone has idea about getting yaourt's colorful output with 'less' ?
    Last edited by izmntuk (2014-06-08 00:15:15)

    Thanks for reply and after serveral mintues googling & getting some help from IRC:
    It seems that there're some utilities that do not provide such a option like 'color=always', what we need to do is trick these utilities into thinking their's STDIO is to a tty, not a pipe.
    1. stdoutisatty way (aur/stdoutisatty-git is needed) from [0]:
    $ stdoutisatty yaourt -Qe --date | less
    2. socat way (extra/socat is needed, sometimes doesn't work fine) from [1]:
    $ socat EXEC:"yaourt -Qe --date",pty STDIO | less
    3. script way (sometimes doesn't work fine) from [2]:
    $ script -fqc 'yaourt -Qe --date' | less
    4. unbuffer way (extra/expect is needed) from [3]:
    $ unbuffer yaourt -Qe --date | less
    5. zpty way (extra/zsh is needed) slightly modified from [4]:
    zmodload zsh/zpty
    autoload colors && colors
    pty() {
    local VERSION=0.2
    if [[ -t 0 && $# -ne 0 && ${1} != '--help' ]];then
    zpty pty-${UID} ${1+"$@"}
    ## when piping function pty to a pager, it may be a good idea to disable ^C *in this function*. assume that you're going to run this command: pty ls -alRi --color | less
    ## and now you enter a pager, and you press the End key by accident, and the pager seems stuck, and to get unstuck you pressed ^C, then the entire function interrupted. so to avoid the interrupt:
    if [[ ! -t 1 ]];then
    setopt local_traps
    trap '' INT
    zpty -r pty-${UID}
    else
    zpty -r pty-${UID}
    fi
    zpty -d pty-${UID}
    elif [[ $# -eq 1 && ${1} == '--version' ]];then
    print "pty v${VERSION}"
    else
    _-automatic-colored
    print "${bldblu}Usage: ${bldgrn}pty${rst} ${bldcyn}command${rst} [${bldcyn}argv${rst}...]
    wrapper function to run a program under pseudo-terminal
    ${bldcyn}--help${rst} print help message
    ${bldcyn}--version${rst} print version"
    fi
    ptypg() {
    if [[ -t 0 && $# -ne 0 && ${1} != '--help' ]];then
    pty $@ | pg
    else
    _-automatic-colored
    print "${bldblu}Usage: ${bldgrn}ptypg${rst} ${bldcyn}command${rst} [${bldcyn}argv${rst}...]
    wrapper function to run a program under pseudo-terminal and view its output in pg
    ${bldcyn}--help${rst} print help message"
    fi
    _-automatic-colored() {
    if [[ "${1}" == unset || ! -t 1 ]];then
    unset rst bld bldwht bldblk bldred bldgrn bldylw bldblu bldcyn blk red grn ylw blu cyn gry
    return 0
    elif [[ -t 1 ]];then
    rst="${reset_color}"
    bld="${fg_bold[default]}"
    bldwht="${fg_bold[white]}"
    bldblk="$fg_bold[black]"
    bldred="$fg_bold[red]"
    bldgrn="$fg_bold[green]"
    bldylw="$fg_bold[yellow]"
    bldblu="$fg_bold[blue]"
    bldcyn="$fg_bold[cyan]"
    gry="${fg[white]}"
    blk="$fg[black]"
    red="$fg[red]"
    grn="$fg[green]"
    ylw="$fg[yellow]"
    blu="$fg[blue]"
    cyn="$fg[cyan]"
    return 0
    fi
    $ pty yaourt -Qe --date | less
    $ ptypg yaourt -Qe --date
    And if there are any better implementation please leave a comment add it to wiki .
    Last edited by izmntuk (2014-08-19 14:18:45)

  • Cannot get colors to match with epson aritsan printer

    Have been working with Epson tech support to get colors to match the CS5 colors to no avail. Have claibrated my monitor using Huey calibration unit and no matter what I try cannot get the correct colors. Any suggestions?

    off the VIvid setting on the printer
    Hi,
    I'm not familiar with the Epson print driver in Windows, but is there a choice for No Color management? If Photoshop runs the color conversion, there should be no CM on the printers part.
    In the first Print Dialog (Photoshop's) do you have the correct destination profile chosen? It should be Epson Lustre for that printer.  And what is your source space? You should Soft Proof to the Epson Lustre paper to get a better idea of how it will reproduce. (In Photoshop go View>Proof Setup and go Custom and find the device to simulate- Lustre paper for your printer. Now you can work in your editing space like Adobe RGB and soft proof to your destination device)
    Can you post a screen shot of the Photoshop Print dialog showing your settings?
    And one of the Epson Print settings dialog too?
    Thanks!
    Also, keep in mind the inexpensive all-in-one print/fax/scan/copy/cappuccino-makers do not necessarily produce the highest quality photos. I love my higher-end Epson printer (R2880) but I will not own an Epson all-in-one again. I have had nothing but trouble with inexpensive Epson inkjet printers. Completely junk IMO. (that said, I have not owned an Artisian 730)
    Have you done a nozzle check just to be sure there is no clogging?

  • Signifigant Color Banding issues on Screen

    Hello, received my galaxy nexus recently and overall pretty pleased with it except for the color representation of the screen. Whenever I'm on a light colored background I'll notice and band of a darker shade running up the near middle of the screen and also across horizontally. The effect is diminished if brightness is increased but still noticeable under certain conditions. I purchased this through verizon online on the launch day and just wondering what my options are. Could I exchange for another model in a store or have to do online if at all possible and what are the fees I may incur? Thanks.

    I have the same problem:  On the right side of the screen, near the wifi icon, there are alternating dark and light lines that go down the screen.  It's only visible on dark colours that are mostly plain.  I can see it whenever I slide the notification screen down, on grey screens in some programs, on the purple bubbles wallpaper, et cetera.  This is actually my third Galaxy Nexus, and each one has had its own unique display problem, so I am not even sure whether it is worth getting another one.
    Edit:  I called Verizon Customer Support, and they, being excellent as always (in my opinion -- and no, they are not paying me to say this ) arranged for an 'overnight' replacement.  It will arrive on Tuesday, because of the weekend and holiday, but it's definitely quick enough.  I'll scrutinize that one's screen for a few hours before sending my old one back.

  • How we can get the values  from one screen to another screen?

    hi guru's.
         how we can get the values  from one screen to another screen?
              we get values where cusor is placed but in my requirement i want to get to field values from one screen to another screen.
    regards.
      satheesh.

    Just think of dynpros as windows into the global memory of your program... so if you want the value of a field on dynpro 1234 to appear on dynpro 2345, then just pop the value into a global variable (i.e. one defined in your top include), and you will be able to see it in your second dynpro (assuming you make the field formats etc the same on both screens!).

  • I am having problems connecting to home wifi.  It was working, but now all I get is a blank white screen.  I re-booted with no success.

    I am having problems connecting to home wifi.  It was working, but now all I get is a blank white screen.  I re-booted with no success.

    Hi, blank white screen where exactly?
    Make a New Location, Using network locations in Mac OS X ...
    http://support.apple.com/kb/HT2712
    10.5, 10.6, 10.7 & 10.8…
    System Preferences>Network, top of window>Locations>Edit Locations, little plus icon, give it a name.
    10.5.x/10.6.x/10.7.x/10.8.x instructions...
    System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
    The interface that connects to the Internet should be dragged to the top of the list.
    If using Wifi/Airport...
    Instead of joining your Network from the list, click the WiFi icon at the top, and click join other network. Fill in everything as needed.
    For 10.5/10.6/10.7/10.8, System Preferences>Network, unlock the lock if need be, highlight the Interface you use to connect to Internet, click on the advanced button, click on the DNS tab, click on the little plus icon, then add these numbers...
    208.67.222.222
    208.67.220.220
    (There may be better or faster DNS numbers in your area, but these should be a good test).
    Click OK.

Maybe you are looking for

  • How do I charge my MBP on airplane using their USB outlets?

    Hello everyone, I have to make a lot of work-related trips mostly flying within Asia or from Asia to Africa (and return). While I am aware of the MagSafe Airline Adapter, I have actually never seen the required outlet anywhere close to my seat (well,

  • Will mountain lion supports a 10 bits color depth?

    Just wondering if and when it will, and how much it affects color accuracy in photography comparing to chain that supports a full 10 bits per channel color depth. Thanks in advance for your answer. Max

  • Report on Supporting Details

    Hi, Our client has purchased a tool to load supporting details directly into Planning. This is to have the granularity of the cost details. Is there any way that we can generate a report of the supporting details. Will that be restricted to that part

  • CCMS for XI

    Hi,        I am trying to install and register the CCMS on XI system. I am following the document  “CCMS Agents: Features, Installation, and Operation “ as suggested by SAP. Found this in the market place at https://websmp108.sap-ag.de/monitoring  ->

  • Round trip export/import from Mac OSX iCal

    Since there isn't an iSync plug-in for Oracle Calendar (yet?) I thought I'd try a round-trip import/export between Oracle Calendar and Mac OSX iCal. Inconvenient, but it should would because the UIDs in the .ics file would be the same and an import w