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.

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.

  • 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.

  • 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

  • Web applet loadlibrary problem

    Hello,
    According to
    http://java.sun.com/sfaq/example/loadLibrary.html
    A web applet should be able to load a library from a method in the classpath.
    However, when I run my web applet, I get the error:
    java.security.AccessControlException: access denied (java.lang.RuntimePermission loadLibrary.caMIDI)
    I'm certain the method that is loading the library is in the classpath because when I remove this jar from the classpath, I get a class not found error.
    None of the jars are signed. I am using OS X 10.4.10.
    Any ideas,
    Thanks!

    Well I'm sure it must be something I'm doing, but what?
    I'm able to load another jnilib using a wrapper jar with no problem. I don't have the source to this jar and jnilib so I don't know how it is being done.
    I've created a simple jnilib and wrapper pair using the apple's Xcode template, but get the following error.
    Here is the stack trace:
    java.lang.ExceptionInInitializerError
         at CaMIDIappletTest.init(CaMIDIappletTest.java:86)
         at sun.applet.AppletPanel.run(AppletPanel.java:378)
         at jep.AppletFramePanel.run(AppletFramePanel.java:176)
         at java.lang.Thread.run(Thread.java:613)
    Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission loadLibrary.caMIDI)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
         at java.security.AccessController.checkPermission(AccessController.java:427)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
         at java.lang.SecurityManager.checkLink(SecurityManager.java:818)
         at java.lang.Runtime.loadLibrary0(Runtime.java:816)
         at java.lang.System.loadLibrary(System.java:992)
         at JNIWrapper.<clinit>(JNIWrapper.java:14)
    So, why can my applet work with one wrapper jar and jnilib pair, and not my pair?

  • 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.

  • 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.

  • How can I use applet to get the desktop image of client

    hi,I have a question to ask u.
    How can I use applet to get the desktop image of client? Now I develop a web application and want user in the client to get his current image of the screen.And then save as a picture of jpeg format ,then upload it to the server?
    I have done an application to get the screen image and do upload file to server in a servlet with the http protocal.

    Since the desktop image is on the client's local hard drive, you'll need to look at trusted applets first.

  • How can I open a saved report in WEBI applet

    Hello -
    We have successfully integrated the BO WEBI applet into our web application, and have created reports using the "Save As" option.  However, we don't seem to have access to these reports.  There does not seem to be an "Open File" or "Open Report" icon in the applet toolbar that we can use to access the reports that we have created and saved.  Is this capability not available in the WEBI?  There also doesn't seem to be an easy-to-find explanation of what we are doing wrong.
    Thank you for any help.

    Ted -
    Thanks for your response.  We tried what you suggested, and it does indeed work for the first document you load.
    However, now I see the effects of not having an Open icon in the applet's toolbar.  So we have a "list widget" in our app from which the user can select a report to load into the applet for viewing or editing.  The way it works, as you suggested, is to provide the doc id and name thru the applet parameters.   So after selecting a document, we rerender (via ajax) the panel that contains the applet, which, of course, causes the applet to completely reload - which is very ugly, clunky, and something that seems unnecessary. (We actually get an error when we try to select another report, telling us that we need to close down the applet and log in again, but this error is beside the point for now.)
    The first sentence of your initial reply was to say that there is no Open method.  By this, were you also implying that there is no java method call in the applet I can make via javascript on the page?  I would really like to be able to load a new document into the applet without having to suffer thru a reload.  Is there any java api exposed for the applet that I can possibly use to load a new document "on the fly"?  I haven't been able to
    Thanks again for any help.

  • Why do I get a colored shadow behind shadow and feather transparency areas when printing?

    Hello,
    I've been pulling my hair out over this and finally went to my printer to ask if they had insight as to why this is happening. I'll include his reply here but would like to hear your expert opinions too!
    When laying out a file in InDesign, I do a lot of overlapping, feather and some drop shadow and always get a colored shadow behind the transparency area when printing out from a pdf. These files are being designed for print, which is what I thought InDesign was created for - as an updated alternative to Quark and Pagemaker? Here is what the printer says:
    "Ive taken a look at the file in question and the issues this lady is experiencing can not be resolved in InDesign. What she needs to do is build the background image with color overlays all in Photoshop as a Layered PSD. Then flatten it and pull it in to InDesign as a Tiff. Then she can place her text over the top of it. She needs to use image masks on the color overlays - for the areas she does not what the color to violate.
    What it comes down to is these fancy design effects out of InDesign and Illustrator should never be used for printing. They can be used for web design. Reason is, they cause RIP problems. Things fall off the file and transparent areas go away just to name a few. This happens all the time."
    I would appreciate any other viewpoints here. Can I really NOT use the shadow and feather functions in InDesign for print? Are there any other ways to approach this problem other than what is being advised here. It is SO much easier to produce the entire file in InDesign.
    Here is a link to the pdf. If someone would like to see the original indd file, I can post it somewhere.
    http://displaysunlimitedinc.com/test/panel_3_text.pdf
    There is a 1 inch blur drop shadow on the black and white temple image; a 1 inch feather on the black and white screened back image behind the main text box; and no drop shadow or feather on the map at top right, yet I get a colored shadow behind all 3 of these areas when I export the indd file to pdf and print that out. The fact that I get a shadow behind the map puzzles me.
    Thank you very much in advance.

    Horgycat,
    The CMYK/RGB question is actually pretty complex, and depends to a great extent on how the final output is going to be produced.
    If the files are destined for a printing press, all RGB elements must be converted to CMYK prior to printing. You have the option of doing that before placing in ID, or during export to PDF, and there are pros and cons to both methods, but if you don't know until the last minute what the print conditions will be, the convert on export path is more flexible.
    Spot colors are a different matter. As far as I'm concerned, you should NEVER specify a spot color unless you are actually using spot ink on a press. A lot of inkjet and laser devices claim to be Pantone certified, but the reality is that even with expanded gamuts available using more than four inks, I'd estimate that better than half the Pantone solids are not reproducible as simulations that would satisfy me or my clients. The convert spot to process route should only be used, in my opinion, when you've designed a job properly to be printed using spot colors, and suddenly you have an output change or an added image that forces you to move to a process output. The last time I tried it, by the way, I had issues at the printer (the regular prepress guy was out of town, so I'm not sure what went wrong) and I ended up re-building the file with real process colors to get the transparency to work.
    But you mentioned that you are doing exhibition panels, which implies to me that they are probably NOT going on a press -- you need to do hundreds, or sometimes even thousands, of copies to make a press cost-effective compared to digital printing. I used to work in a large-format output bureau doing just this kind of work, and we used large inkjet plotters. In this case, mixed RGB and CMYK files are less of an issue since most plotters will handle either, and depending on if they have an internal or external RIP or none at all, you may actually get better color fidelity using RGB as CMYK colors may get converted in the RIP to the RGB values that the plotter understands, and then get converted back a second time to CMYK (CMYKOG or whatever ink combination is used) internally before the ink is sprayed. Only the print provider would be in a position to tell you the correct color space for the equipment.
    Which of course puts you at a bit of a disadvantage working with a client out of state who isn't supplying you with such necessary information as the correct output profiles for the job. It will be a miracle if the color is close.
    A final word about looking funky on screen. Just as many spot colors can't be well simulated in CMYK, many also cannot be displayed adequately on a monitor. The ONLY way to choose spot colors is with a swatch book, and that's what the press operator will be using to verify his work. Clients need to be educated about the differences in technology and the limitations of soft proofs.

  • 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.

Maybe you are looking for

  • Open thread for new purchase of external hard drive

    I have 4x 500 GB drives and 2x 250GB drives that I want to consolidate to one drive. I have trusted LaCie and recently (in the past 2 years) have been happy with the G-Drives as well. To my suprise (and shock really) the Mac geniuses I spoke to at th

  • Input buttons do not render in Safari for Mac

    Hi, As a developer I am having difficulties with Safari when it comes to render forms and javascripts. many of them simply are ignored when rendering. I will appreciate if you can login into this page: http://www.headon.com.au/index.php?act=picpolls&

  • How do I get rid of 22 Find as my home page?

    There was an automatic change of some kind that no matter what I do this 22Find sight comes up when I get on internet. I have tried all your suggestions to resetting the old home page or choosing a different home page. None of them have worked. I rea

  • I had my computer re imaged and reintalled Adobe XI.  Now I cannot locate my forms in Adobe Forms Central.  Help!

    I had my computer re imaged and reintalled Adobe XI.  Now I cannot locate my forms in Adobe Forms Central.  Help!

  • Help reqd on RG23D

    Hi abappers.... My requirement is..... Opening Stocks at Plant(werks) level for RG23D balances to be captured line itemwise to generate 'A' Certificate Separtely.... Im a beginner in ABAP and i dont know which tables,fields...i've to take and make a