Operating symbol question...

String s= Integer.toString((pixel & 0x00FF0000) >> 16)
What does (pixel & 0x00ff0000) mean? Thx!!

String s= Integer.toString((pixel & 0x00FF0000) >>
16)
What does (pixel & 0x00ff0000) mean? Thx!!
pixel is most likely a defined long value, which is then logically combined with the octal number equal to 1111 1111 0000 0000 0000 0000.
the & means that if pixel be something like 1010 and the other term being something like 1001 that both are combined to :
1010
1001 &
1000
Then the entire term is shifted by 16 positions to the right, thus making the long to an int, and then the value of the int is put into the String s.
Hope that helped

Similar Messages

  • Battery Symbols Question

    Hey guys I'm using an external charger case on my iPhone 4. So my question... What's the difference between the lightning bolt and plug symbol? Thought i would ask you guys cause I'm not sure. Thanks

    So if my battery is slowly draining (% symbol) going down and I have the plug symbol showing... Does that mean I have a defective charging case?

  • Quick Symbol Question

    I saw a portion of code just now and i cant seems to identify a symbol in that code
    w = w << FIXED_POINT_SHIFT;
    if(x > w - EDGE_REPEL_DISTANCE) {
         vx -= (( x - (w - EDGE_REPEL_DISTANCE)) * EDGE_REPEL_FACTOR)
                   >> FIXED_POINT_SHIFT;
    }what does << and >> do?
    unclear
    kelkel

    during what scenario will we use << and >> shift operators?
    whats the purpose of using these operators?
    extracted:
    13 >> 1;
    The binary representation of the number 13 is 1101. The result of the shift operation is 1101 shifted to the right by one position-110, or 6 in decimal. The left-hand bits are filled with 0s as needed.
    does it mean that when i do
    13 >> 2;
    the result will be -11?

  • Opera Mini question

    Opera mini came built in on my 5130 right. I see that the opera mini version in use on my phone is 4.1.something while the latest version is actually 4.2. So my question is, can I just download and install opera mini 4.2 as per usual or is there some other way to do it since it is the default "built in" browser? I have the latest firmware by the way (6.65)

    the only way you can upgrade the built-in browser is through firmware updates, which may bring baseline updates to the browser or not (depending on Nokia). the 4.2 you downloaded is the generic vanilla variant of Opera, which is also for mobiles that don't have Opera pre-installed or the like. Nokia S40 is the software platform that your phone uses, you do not need to worry about this, it is just stating what the OS is. that is true, you need to use the built-in browser to use sites such as Nokia.mobi because it does contain data about what phone model you are using, which the generic version of Opera doesn't contain.
    anyways, bottom line is what i said. you can only hope that if there are future firmware upgrades, that Nokia includes updates to the Opera browser. you cannot do anything more about this matter.
    please throw some kudos our way, it would mean a lot to us
    If you found this or someone's comments helpful or like what that person has to say, please give some Kudos to their post!

  • QM -refererence operation set question

    Hi All,
    Here is the question.
    I created a Refernce Operation Set.The operation sequence for the operations are random like in 0020,0050 and 0100.I want it the same way to be shown after i create Inspection Plan .I tried this by creating Inspection plan as a copy model but this would mean that any chnges in refernce operation set would not update in the inspection plan.Is there a way to achieve this?
    -Naik

    ANy thought on this please!!!!!
    -Naik

  • The operation priority question

    hi.
    i have one problem.
    may be i am not understand so well but...
    the operation priority of postfix increment is higher than the binary + operation priority and i have this problem.
    int p = 5;
    int b = p + p++ + p++;
    Sytem.out.println(b);i think that it must print "18".
    but i was surprised when it printed "16".
    what you think about this?
    Edited by: nuinisk on Feb 18, 2008 7:15 AM

    nuinisk wrote:
    hi.
    i have one problem.
    may be i am not understand so well but...
    the operation priority of postfix increment is higher than the binary + operation priority and i have this problem.
    int p = 5;
    int b = p + p++ + p++;
    Sytem.out.println(b);i think that it must print "18".
    but i was surprised when it printed "16".Higher priority doesn't mean it's executed first. The expression is evaluated left to right. Operator precence simply means where the parenthese would go.
    First it evaluates p, which is 5
    Next, it evaluates p++, which also has a value of 5. Remember, the value of x++ is x's original value. x getting incremented is just a side effect.
    Next it evaluates p++, which has a value of 6. A side effect is that p's value goes to 7, but the value of the expression is, by definition, p's value before that happens.
    5 + 5 + 6 = 16.

  • IMac operating temperature question

    Hi. I am thinking of getting a new iMac.
    I see on the iMac technical specifications webpage :
    http://www.apple.com/imac/specs.html#specs
    ...that the iMac is required to be in a 50 degree Farenheit or warmer environment. "Operating temperature: 50° to 95° F (10° to 35° C)"
    So what if the temperature goes down to 35 degrees Farenheit in a low heat overnight situation? Is this a real cause for concern?
    Thanks.
    Thomas

    The Dell XPS One has these specs:
    "Temperature:
    Operating 10° to 35°C (50° to 95°F)
    Storage –40° to 65°C (–40° to 149°F)
    Relative humidity 20% to 80% (noncondensing)"
    (I had to download the "Dell™ XPS One™ Owner’s Manual" to find them. Annoying.)
    The important word is "noncondensing". If your machine gets cold and the water vapor inside it condenses, then you have liquid water covering certain parts. This is never good.

  • Symbol question

    What does the symbol    ~      stand for ?
    I asked where a folder would be located and was told  it would be in       ~/desktop.
    i have no idea what   ~   represents.

    Your "Home" directory.
    Or Finder -> Go -> Home
    Or Finder -> Command-Shift-H
    Or
    $HOME
    Or
    /Users/yourShortUserName
    If you have multiple users on the system, then you can specify the home directory of another user using
    ls ~theirShortUserName/

  • Upgrading Operating System Question

    Hi, this might be a dumb question but I was wondering if anyone here can tell me if you can skip an upgrade and go from OS 10.1 to 10.3 or 10.2 to 10.4.
    The reason being that I'm still running OS 10.3 which is more than fine for now and do not want to upgrade to 10.4 because 10.5 seems to be just around the corner (late 2006 or early 2007).
    Thanks in advance for any responses.

    There is no doubt that Mac OS X 10.5 will be available for the PowerPC processor so there no reason to concern yourself on that front.
    Even Mac OS X 10.6 will more than likely be PowerPC as well although in this case it may come to Apple's revised update schedule. At the 2004 (I believe) World Wide Developer's Conference Steve Job did state that Apple was slowing down the update schedule for Mac OS X from an annual update to a longer period. It's quite probable that version 10.5 has been brought forward somewhat due to both the Intel releases and Windows Vista though it's hard to say what that means for 10.6.
    Regardless, you're fine for a few years yet!

  • Chord symbol question

    Hi,
    I often make simple Lead Sheets with the song's melody, lyrics, chords and maybe some repeat symbols.. Nice and easy in Logic.
    What I don't like is that if I have a chord like G/F, the letter F is placed lower than the letter G. It does accentuate that the "right hand chord" is G and the bass note an F, but it takes much more room on the staff, and I find it a bit messy next to the "normal chords".
    Is there any option that I can choose to have the letters these chords on the same height??? I have been searching the manual and the menus, but no luck so far.
    Thanks!!
    Regards,
    Jaap

    thanks - I hadnt thought of the resize tool... it does not seem to work on chord symbols but useful of course for other objects. Click and dragging with the size tool shows the scale change from + to - 16 but no change occurs in the size. Best workaround as been to fiddle with the chord and root font size...

  • A cannot resolve symbol  question

    I have this code: CurrencyTable is just a class extended from JTable and has only one constructor with string parameter. So I get one error for each those lines:
    euro = new CurrencyTable("euro");
    dollar = new CurrencyTable("dollar");
    chf = new CurrencyTable("chf");
    Could you explain me why I can't declare my variables like this ? Thanks
    import javax.swing.*;
    public class YearPane extends JTabbedPane{
    private String name;
    private int index;
    private CurrencyTable euro;
    private CurrencyTable dollar;
    private CurrencyTable chf;
    private GraphicPanel gpanel;
    public YearPane(String aname, int anindex) {
    name = aname;
    index = anindex;
    euro = new CurrencyTable("euro");
    dollar = new CurrencyTable("dollar");
    chf = new CurrencyTable("chf");
    gpanel = new GraphicPanel();
    }

    In fact I don't use the package instructions... Here are the errors:
    Chargement/YearPane.java [28:1] cannot resolve symbol
    symbol : constructor CurrencyTable (java.lang.String)
    location: class CurrencyTable
    euro = new CurrencyTable("euro");
    ^
    Chargement/YearPane.java [29:1] cannot resolve symbol
    symbol : constructor CurrencyTable (java.lang.String)
    location: class CurrencyTable
    dollar = new CurrencyTable("dollar");
    ^
    Chargement/YearPane.java [30:1] cannot resolve symbol
    symbol : constructor CurrencyTable (java.lang.String)
    location: class CurrencyTable
    chf = new CurrencyTable("chf");
    ^
    3 errors
    Errors compiling YearPane.

  • Some symbol questions

    I'm working with symbols for the first time (amateur here), and I'm confused about a couple of things.
    I've created some symbols and saved them into a user defined library under 'some name'.  Then I open a file in which I'd like to use those symbols.  But when I open the symbol library user defined library, my 'some name' symbol library isn't there.  Is there any way I can continue to access my symbol library without having to shut down and reopen Illustrator?
    I'm developing a slight tremor in my hand.  So when I want to spray one instance, i often get two or three.  Is there any way I can control the number of instances sprayed at onece?  ( I only have a mouse, not a graphics tablet.)
    I'm running CS6 on a 64-bit Dell PC.

    Use the command to open "other library" (it can be found in several places)
    There you can navigate to any AI document to open its symbols as a library

  • Opera Browser Question

    i did not no where else to post this.
    does anyone know how to switch identities in Opera?
    i saw online that you could switch it to Internet Explorer so it can work with web sites that only work with IE.
    thank you

    Bring up the contextual menu and select Edit Site Preferences. In the Network tab there's a browser identification thing down at the bottom.
    As far as I can tell, identity switching is done on a site by site basis, with no universal option. But I could well be wrong, not being a serious Opera user.

  • Quick Flash/operating system question

    Is it THAT necessary for me to upgrade one of the systems
    here to Win XP for Flash 8? Can I get by with the Win 2000
    Professional? I kind of need to know NOW...
    Thanks,
    Jacki

    Jacki in Atlanta wrote:
    > Is it THAT necessary for me to upgrade one of the
    systems here to Win XP for Flash 8? Can I get by with the Win 2000
    Professional? I kind of need to know NOW...
    riht after your post there is another that starts with "In
    Flash-8 on Windows-2000"
    so I guess it does work :)
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Operating system question

    I have OS X 10.5.4 and I upgraded applications that won't open except with Snow 10.6.3?
    Any suggestions? If I upgrade will it erase all my files? Please give me a step by step...
    I appreciate it ahead of time...
    Cheers!
    FILM ABETHIA

    Hi F,
    All you have to do is purchase 10.6 Snow Leopard ($29 or less online), boot from it (hold down the c key), and follow the on-screen directions to Upgrade (do not Erase and Install, as that will erase everything). It is always best to have a current backup, whether you're installing a new OS or just working day to day.

Maybe you are looking for

  • Export Voice Memos from iPhone 4 to Mac/itunes

    I'm trying to get Voice Memos from my iPhone 4 onto my computer so I can then subsequently put them on my iPhone 6. They didn't sync properly the first time I tried. The apple support told me that I would have to use third party software. Anyone know

  • Why Apple does not offer support for linux?

    We all know the history of Apple. It clearly shows a trend to be open source, excepting for the licenses they share with Microsoft. In my personal case, I love open source because it has solved several of my problems. Just to share this with everyone

  • Storage location mandatory

    Dear Experts, Could you please inform to make Storage Location field has mandatory in Purchase Order for the User ID. Since it is a Client level I do not want to disturb for any other company code or plants. And also I want to make Plant mandatory wh

  • How to make pscs6 open RAW automaticly

    when i double click on a raw pix it opens in pscs6, but an olderversion.  i will now delete this as i am scared it will make me reinstall the whole thing.  i just want to set mac computerrunning mavericks, to open with 10.0.6.  any advice?

  • Routing change idoc in SAP  LOIROU01/02

    Hi All, Has anyone used routing idoc LOIROU01/02 for change routing and allocate operations for BOM in SAP using we19 test tool. If so, please give me the minimum fields need to pass in we19 for LOIROU01/02 idoc to allocate an operation to a BOM comp