Need help!-----How to get pixel from pixel location??

Hi, I have the location of a pixel (x, y), how to get the pixel value which will be used in DirectColorModel cm.getRGB(int pixel)?
thanks a lot!!!

Hi, my image is created by Toolkit.createImage(byte[]). I think I should use PixelGrabber to grab all pixels value to int[], use location(x,y) to get pixel index(y*width+x), then use ColorModel.getRGB(int pixelIndex) to get the rgb value at that location, right? is there any other way to do it?
thank you.

Similar Messages

  • Hi, I have this green mark (with pointing arrow looks like a link) on some words show on my window screen when I open a web page, I wonder if it is a virus link or such. Need help how to get rid of it. Thanks

    Hi, I have this green mark (with pointing arrow looks like a link) on some words show on my window screen when I open a web page, I wonder if it is a virus link or such. Need help how to get rid of it. Here's the example:
    WING
    GAMES
    MAJORITY
    Thanks

    If the third link you posted (the link containing the word "majority") does not look like the following then you inadvertently installed adware.
    That particular page should resemble the following:
    The word "majority" in the third paragraph should not be a link and should not have the green icon associated with it.
    To learn how this may have occurred, and how to prevent it from occurring in the future, read How to install adware
    Most so-called "news" websites are nothing more than entertainment outlets that cater to prurient interests, and contain advertisements that leave the user about three clicks away from installing junk. If you decide to frequent those websites, Safari's "Reader" feature helps minimize that exposure.
    Try it:

  • Help , How to get data from database using recordset with UI API

    I want to get a data from database
    when I want to create recordset i notice that UI API didn't has record set
    so I created recordset using DI API (SAPbobscom.recordset and SAPbobscom.company)
    ======================================================
    Dim oCompanyUI As SAPbouiCOM.Company <<UI API
    Dim oRecSet As New SAPbobsCOM.Recordset << DI API
    Dim oCompanyDI As New SAPbobsCOM.Company << DI API
    '=====================================================
    oCompanyDI.Connect
    Set oRecSet = oCompanyDI.GetBusinessObject(BoRecordset)
    oRecSet.DoQuery ("SELECT T0.CardCode, T0.CardName FROM OCRD T0")
    SBO_Application.MessageBox oRecSet.Fields.Item(1).Value
    ======================================================
    but I got an error it said "you are not connected to company"
    I'm really don't have an idea about how to get a data from using UI API (exp I want to get a date or costumer code)
    can someone help me please, I really need it
    Thanks

    you need a single sign on
            Dim oDICompany As SAPbobsCOM.Company
            Dim sCookie As String
            Dim sConnStr As String
            Dim ret As Integer
            oDICompany = New SAPbobsCOM.Company
            sCookie = oDICompany.GetContextCookie
            sConnStr = SBO_Application.Company.GetConnectionContext(sCookie)
            If oDICompany.Connected Then
                oDICompany.Disconnect()
            End If
            ret = oDICompany.SetSboLoginContext(sConnStr)
            If Not ret = 0 Then
                SBO_Application.MessageBox("set Login Context failed!")
                Exit Sub
            End If
            ret = oDICompany.Connect()
            If Not ret = 0 Then
                SBO_Application.MessageBox("Company Connect failed!")
            End If

  • Need help about RRD4J, get data from rrdb

    i need more help about roundrobin database, especially using RRD4J library.
    i want to know, if i have one file database data1.rrd and i specific want to get data from startTime to endTime.
    how i can get that data from that database, and move them to another database file data2.rrd.
    can i do this?

    thx jschell
    javadoc from rrd4j not clearly enough for me to understanding about prosesing add, update and get data in there, so i ask in this forum may be anyone can give me solution.
    i think it's simple problem but i don't know how to implement with this API.
    with rrd4j we can create roundrobin database (rrd), the output in example: data1.rrd
    i just want to get data that i had put in data1.rrd to move them to another rrd, example: data2.rrd.
    data1.rrd and data2.rrd, they have same lastupdate time.

  • Help: how  to get text from IFRAME

    <!-- The box where we type-->
    <IFRAME class="mytext" width="100%" ID="mytext" height="200">
    </IFRAME>
    someone can tell me how i get text in my servlet from
    <IFRAME>
    thankx in advance...

    someone can tell me how i get text in my servlet from
    <IFRAME>
    thankx in advance...Hmm. I think you are mixing something up here. Why would you use an IFrame for entering text? IFrame is used for including content from different HTML-pages inside your page.
    If you want to have a textbox for an user to enter text into and submit it to a server, you need a form and a textarea inside that. Like this:
    <form action="myServlet" method="post">
    <textarea name="myArea">
    </textarea>
    <input type="Submit" value="Ok">
    </form>Change the action in the form to reflect the mapping to your servlet.
    Then you can just do a String enteredText = request.getParameter( "myArea" ); inside your servlet.
    If you insist that you need to use an IFrame, I guess the only way to do it would be to write a Javascript function, that copies the contents from the IFrame to a hidden field before the page is submitted to your servlet. In your servlet you would read the value from the hidden field.
    .P.

  • HT1212 I NEED HELP HOW CAN GET IT

    i need help my iphone is lock

    You didn't really specify your issue but I'll assume you need this help article here:
    iOS: Forgotten passcode or device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212

  • Need Advice - How to get support from Management?

    Saturday, May 11, 2002 8:45pm ADT
    Hi all,
    I'm a developer with 5 years experience. I've been working with Oracle from the start. Last year I decided to work towards a specialization and distinguish myself from the other 300 developers at my office. So I got my Oracle8i DBA cert! I got my certificate in the mail last month. :-)
    Since word spread around the office about my achievement I have been flooded with phone calls and emails from co-workers asking for my help with their oracle issues/problems. I've since come to the conclusion that I no longer want to be "just another developer" at the office... I want to be the in-house oracle consultant. But I have to convince the decision-makers at my company to let me serve them in this capacity... in other words - create a new position just for me.
    I need to convince them of the value/benefit of having a person on staff who eats, breathes and sleeps Oracle. There are over 300 developers at my office as I've already stated and I am the only OCP. The project executive from Head Office who can approve this new position is visiting our center near the end of June.... so I have about a month to prepare my "pitch".
    Any advice?
    Thanks,
    Phany LeBlanc
    Moncton, NB CANADA

    A couple of nuggets:
    1. If you want something, ask.
    2. Be prepared for questions from a different paradigm. Managers don't care much about technology or certificates. They'll be asking about what value you'll bring to the organization in any given position.
    3. Give examples.
    4. Be persistent. If you get an answer like "I'll think about it" or "let me talk it over with ...", then follow up, in person if possible.
    5. Don't make your case via e-mail. Most management hates e-mail and the problems it causes.
    6. Avoid techno-babble.
    7. Interview some managers who know the decision maker. Tell them what you're thinking about and ask them to help.
    HTH
    Thanks, George

  • HELP - how to get photos from iphone after Telstra wiped it

    Hi
    I am asking this question on behalf of my sister. She had her second child last week and her husband took heaps of photos on his iphone from the birth and the first couple days in hospital, I'm not sure what model his iphone is but he only got it in the last couple months. On the weekend him and a mate mixed their phones up, his friend kept putting his pin code into my brother inlaws phone and by the time he reaised it wasn't his phone he had locked it up somehow (I don't have an iphone so I'm not sure about all of this!) They took it into the Telstra shop and they got the phone working again, but in the meantime it wiped all his contacts/photos etc that were stored on the phone. My sister was very upset as now they don't have any photos from when Charlie was born. The girl at the Telstra shop said they are gone forever and there is no way to get them back but I am hoping there is somehow - can anyone help us?
    Thanks
    Jade

    Sounds like the girl at Telstra did a restore of the phone and then wipe out all the data on your bro-in-law phone.
    Data could've been saved if your bro-in-law would've synced his phone to the computer he normally syncs too.
    By doing the restore there is no way to get the data back from the phone.  Sorry.

  • Need help, how to transfer songs from iTune library to ipod??

    Hi everyone, I just got my iPod this weekend for my birthday. My friend told me to go to "Lime Wire" to get free songs, so I did and the songs went to my iTunes page.
    However, for some reason when I tried to download all the songs to my iPod, only one song popped on my iPod. (Weird)
    Anyway, how do you get the songs from the iTunes library
    to download to the iPod. What am I doing wrong?!
    Thanks!

    Welcome to the discussions,
    Music is one way only, from the computer to your device, unless you bought the songs in itunes and transferred your purchases.
    There is 3rd party software out there to do what you want, but not supported by Apple, see this thread: http://discussions.apple.com/thread.jspa?threadID=2013615&tstart=0

  • Need help how to get G4 mac to print to HP Laserjet 4  w/usb/parallel cable

    I have a PowerPC G4 w/OSX 10.4.11 and a HP laserjet 4 connected with a USB to parallel cable,  I cannot get it to print,
    how do I fix it ?
    thanks in advance

    Have you tried going to the "Print and Fax" pane of the system preferences, and Control-clicking into the panel at the left that would normally show installed printers?
    If not, do that and if the cursor spins, wait until it stops, and the LaserJet 4 should show up as a Bonjour Printer/Scanner. Then click "+" to add a printer, then "more printers" and then select the HP device, and with any luck it should work.

  • Need Help: How to get rid the NoInitialContextException

    import javax.naming.*;
    import java.io.*;
    import java.util.*;
    public class test {
    public static void main(String[] args) throws Exception{
    Context ctx = new InitialContext();
    Hashtable env = ctx.getEnvironment();
    System.out.println(env.toString());
    I'n trying to printout the environment contained in the initial context but it just keeps giving me the NoInitialContextException during runtime. Below are the version of j2se and classpath i have set.
    J2SE version: J2SDK 1.3.1_03
    Classpath: %JAVA_HOME%/lib
    OS: WIN2K
    My Knowledge on JNDI: ROOKIE (Beginner)
    Please help out.

    tehts,
    You must set the environment first:
    import java.util.Hashtable;
    import javax.naming.*;
    import javax.naming.directory.*;
    env = new Hashtable(5, 0.75f);
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
    env.put(Context.PROVIDER_URL, URL);
    env.put(Context.SECURITY_AUTHENTICATION, "simple");
    env.put(Context.SECURITY_PRINCIPAL, DN); //use your own one
    env.put(Context.SECURITY_CREDENTIALS, PassWord); //use your own one
    try {
    ctx = new InitialDirContext(env);
    Hashtable env1 = ctx.getEnvironment();
    System.out.println(env1.toString());
    } catch (NamingException e) {
    e.printStackTrace();
    Hope this helps.
    Cheers,
    George

  • I need help transferring Bootcamp (Windows XP) from my old Macbook Pro to the new one. How do I make bootable clone of Bootcamp?

    Hi I just got a new MacBook Pro I need help transferring Bootcamp (Windows XP) from my old Macbook Pro to my new Macbook Pro  Mac OS X 10.7.4  2.6 Ghz Intel Core 17. How do I make bootable clone of Bootcamp?

    you can't just move XP even if you took the hard drive and have Windows boot and function.
    Apparently there are Windows tools to sanitize the OS and strip all the motherboard drivers and services.
    Time to get a supported OS. Don't want to pay, then use 8 for the time until it goes on sale.
    There are no drivers for even Vista on 2011 and later Macs.

  • I have a new MacAir and don't know how to get info from my USB stick and my SD photo card.  Can anyone help me please?

    I have a new MacBook Air and don't know how to get info from my USB stick and get info from my SD card.  Can anyone help, please?

    Plug the stick and/or card into the appropriate slots on the side of your Air. Do you see icons for the devices appear on the desktop? Click into them to see what files are there.
    Matt

  • How can I get a stripped screw out of the bottom of my iPhone?? I need help, How can I get a stripped screw out of the bottom of my iPhone?? I need help

    How can I get a stripped screw out of the bottom of my iPhone?? I need help, How can I get a stripped screw out of the bottom of my iPhone?? I need help

    Try asking at ifixit.com. The iPhone is not considered user servicable. You're not going to get much help on an Apple sponsored forum.

  • Hi I am new on the Mac, I need help, how can I run my apps from my library on my Mac Pro?  All my apps I was used in my iPad, thanks guys!!!!

    Hi I am new on the Mac, I need help, how can I run my apps from my library on my Mac Pro?  All my apps I was used in my iPad, thanks guys!!!!

    The Mac OS X and iOS versions are separate products

  • When I turned my 4s on today all of my contacts are gone. They are backed up in iCloud but I don't know how to get them from there to my phone. Aren't they suppossed to sync automatically over wifi?        Can someone help?

    Hello. When I turned on my Ipone 4s today all of my contacts were gone. They are backed up in iCloud but can't figure out how to get them from there back to my phone. Aren't them supposed to sync automatically over wifi? Can someone please help me?

    Hello jllew333
    Check to make sure that Contacts is toggled on to sync by going to Settings > iCloud. Also go to iCloud.com to see if the contacts are showing up there to see if it syncing those contacts.
    iCloud: Change iCloud feature settings
    http://support.apple.com/kb/PH2613
    Regards,
    -Norm G.

Maybe you are looking for