Drawing with an effect other than Alpha Transparency and XOR

Hello,
I'm looking for a way to draw images (Or anything else for that matter) with simple effects other than the Alpha and XOR effects, such as Multiply, Subtract and Bitwise AND. I've realized it has something to do with the setComposite function, but I haven't figured out how to get further from there, and the documentation didn't seem very clear. This is my first time using Java fro anything graphical; most of my projects are done in PHP and C++.
Could anyone help me with this, perhaps with an example?
Thank you very much!

I'm using Graphics2D. I have one big BufferedImage and other smaller once which I use as sprites. I'm rendering the sprites to the big buffer using drawImage. I need an efficient way to render some of the sprites with an ink effect such as subtract. I know it's possible to do it with a XOR effect by placing setXORMode(c1) before the drawImage function.

Similar Messages

  • Searching for OR Finding Contacts other than Alpha by First/Last Name

    Am I missing something? Or, is it not possible to FIND contacts by any means other than alpha on the first or last name field?
    It's such an elementary function of a "PDA" that I failed to inquire about the ability to LOOK-UP information with some simple SEARCH tool or utility.
    Even CALENDAR events...when did I schedule that appointment with Dr. Smith? FIND "Smith".
    I know "the girl" worked for some pharmacy? SEARCH for "pharmacy".
    Am I missing something? Where can I SEARCH for "HELP"?
    Thank you,
    Joe

    I too am having the same issue. I have about 900 "company" clients. I do business with the company yet can't perform any 'search' in the iphone contacts for that company. I absolutely am shocked by this. spent 45 minutes on the phone with apple and they said i was the first person to ever bring this up.
    I have to say that this is frustrating. Why can't I perform any search. Perhaps I'd like to visit a client that is within the same city i am visiting - i can't sort or search by anything except for the individual contact name.....crap. any thoughts (besides going in to outlook and putting the company name itself under the contact name - that would take forever)

  • How do I sync my Itunes with a device other than I Pod or I Phone ?

    Does anyone know how to sync ITUNES with a devise other than an I POD or I PHONE ?

    iTunes is designed to only sync Apple devices.
    However, you can use the same songs in your iTunes library and copy them to other devices, especially if they are in MP3 format.  Just follw the directions that came with your player.

  • I updated my 4s to ios7 and the phone is now completly dead. I tried to restore it with the new itunes but it won't restore. If you can't get the download be glad! Anyone have any ideas other than going out and buying a new Samsung phone?

    I updated my 4s to ios7 and the phone is now completly dead. I tried to restore it with the new itunes but it won't restore. If you can't get the download be glad! Anyone have any ideas other than going out and buying a new Samsung phone? I don't really need a paper weight.

    No not jailbroken. After the update which took about 45 minutes. The phone went black. Dead. Wouldn't restart. Using the new itunes I tried to restore it. It went through the motions; the white Apple and progress bar appeared on the iphone screen. Then I got a message "Itunes has detected an iphone in recovery mode. You must restore this iphone before it can be used with itunes." Then the phone went completly dead again. I Repeated the process and got the same results. Is there another way to restore the phone if it's dead, besides itunes?

  • Cannot perform rounding for invoices with a currency other than the documen

    Hi all,
    I need some one to help me
    I want to process the incoming payment.
    The AR Invoice is using USD
    In Incoming Payment i want to pay using SGD,
    I already set the BP in all currency
    I also set the Bank account in Bank transfer payment mean in all currency.
    But when i add the document i saw the message like this
    "Cannot perform rounding for invoices with a currency other than the document currency.  [Message 3524-31]"
    What should i do ?
    Thanks in advance
    Regards
    KK

    Hi gordon,
    Thanks for your respon.
    I still do not understand, what you mean.
    I test it in SBO DEMO Au which is the local currency is AUD and the system currency is also AUD.
    Is the any special setting for this issue?
    Or Do i miss the settings in SBO
    My version is 8.81 pl 9
    Thanks in advance

  • Integrate Employe with internal order other than cost center

    Dear Experts,
    Integrate Employe with internal order other than cost center
    Thanks & Regards,
    Mythili
    Edited by: Mythili.R on Jan 10, 2012 1:45 PM
    Edited by: Sikindar on Jan 10, 2012 6:23 PM

    Can use IT0027 at employee level or IT1018 at OM level

  • How do I number pages consecutively starting with a number other than 1?

    In Pages, how do I number pages consecutively starting with a number other than 1?

    Inspector > Document > Section > Page Numbering:     click on the dropdown menu

  • Has anyone experienced wrist pain with new mac computer...? if so what are suggestions other than warm up and cool down exercises..**

    Has anyone experienced wrist pain with new mac computer...? if so what are suggestions other than warm up and cool down exercises..**

    Very good advice but no one is asking for medical advice.... Was wondering if anyone had any ergonomic suggestions that may have worked for them.. ??

  • Huge volume of records are routing to the remote user other than his position and organization records. Synchronization and DB initialization taking more time around 36 hours.

    Huge volume of records are routing to the remote user other than his position and organization records. Synchronization and DB initialization taking more time around 36 hours.
    Actual accounts & contacts need to be route around 2000 & 3000 but we have observed lakhs of records routing into local DB.
    We have verified all the Assignment Rules, Views.
    We ran docking object visibility rules and we have observed that some other accounts are routing due to Organization rule passing. (these records are not supposed to route).
    Version Siebel 7.7.2.12,
    OS Solaris.

    let me know what would be the reason that 1st million takes only 15 minuts and the time goes on increasing gradually with the increase of dataYes that's a little strange. I only can guess:
    1. You are in archivelog mode and the Archiver is not able to archive the redo logs fast enough
    2. You don't use Direct Load and DBWR ist not able to write the direty block to disk fast enough. You could create more DBWR processes in that case.
    3. Make a snapshot of v$system_event:
    create table begin as select * from v$system_event;After the import run
    create table end as select * from v$system_event;Now compare the values:
    select * from begin order by TIME_WAITED_MICRO descwith the values given you by
    select * from end order by TIME_WAITED_MICRO descSo you can look where your DB spent so much time waiting for something.
    Alternativly, you could start a 10046 trace on the loading session and use tkprof.
    Dim

  • Easy Cost Planning in a currency other than Cont Area and comp code curren

    Hi,
        I want to do the easy cost planning in a currency which is other than controlling area and company code currency.
      But I am getting the option of only these two currencies only.
    Any idea how to do it?
    Example:
      Controlling Area currency :INR
    Company Code Currency : AED
    Planning Currency to be used for Easy Cost Planning :USD
    Regards,
    B P Singh

    Hello,
    You may try to go to transaction CT04 - Characteristics. There in tab BASIC DATA you choose Data Type - Currency Format. In field Currency enter the required currency. Save the characteristic.
    Next step is to go to CKCM - Models for Easy Cost Planning. Open the Costing model and add line with the created characteristic.
    Good luck, Aleksandra

  • My iphone has synced with a later date than photos taken and now cant get resent photos back?

    my iphone has synced with a later date than photos taken and now cant get photos recently taken same with messages :-(

    iDevices do not sync with a date... they sync with the computer.
    If the user has restored the device using an older backup, simply restore it with a more current backup.

  • I have upgraded to Mac OS X v10.7 Lion and when I log into mail I can't find my mailboxes other than inbox, draft and sent how do I get my other mailboxes back?

    I have upgraded to Mac OS X v10.7 Lion and when I log into mail I can't find my mailboxes other than inbox, draft and sent how do I get my other mailboxes back?

    Lion is a bit of a memory hog - kernel_task will use quite a bit and Safari is known to use more; you can't do anything about the system, but changing to Firefox may help a little. The best way to deal with it is to increase your RAM; the required minimum is just that: the minimum. My Macbook would keep crashing and beachballing until I upped the RAM to 4 GB. RAM is inexpensive right now - check out OWC (macsales.com) or Crucial.com; both reputable RAM vendors with lifetime warranties. You won't regret it.
    As for iDVD - I purchased the retail iLife 11 disk because of iDVD (because I use that a lot) - it's available at online resellers, the Apple Store, and ebay.

  • Everytime i click on the view in itunes button/link on the itunes website so that i can download apps, nothing happens. I accendentally  clicked on the button other than open itunes and now i cant fix it

    everytime i click on the view in itunes button/link on the itunes website so that i can download apps, nothing happens. I accendentally  clicked on the button other than open itunes and now i cant fix it

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Go to Settings>iTunes and App Stores and sifnout and sign back in
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.

  • My ipod nano 7th gen no longer shows "Playlists" in the music menu. No changes made other than deleting one and adding one playlist to those synced. Synced fine in late February. Not working as of 3/7/2014.

    My ipod nano 7th gen no longer shows "Playlists" in the music menu. No changes made other than deleting one and adding one playlist to those synced. Synced fine in late February. Not working as of 3/7/2014.

    I would either say that the iOS is correpted due to a software glitch or y have have a hardware problem like bad memory locations that are corrupting the iOS.
    - Restore from backup via iTunes. This will install a fresh copy of the iOS. See:                                                
    iOS: How to back up                                                                                     
    - Restore to factory settings/new iOS device.   This will elimate corruptin in the backup causing the problem.          
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
      Apple Retail Store - Genius Bar

  • I just updated my Apple ID to a current email address, it worked on my laptop but my phone is still using the old one and neither password works. I can't download or use anything other than phone calls and texting on my phone now. Help!

    I just updated my Apple ID to a current email address, it worked on my laptop but my phone is still using the old one and neither password works. I can't download or use anything other than phone calls and texting on my phone now. Help!

    go to settings
    then to store
    tap your id then click sign out
    then sign back in and you should be fine

Maybe you are looking for