Search:

Type: Posts; User: nemo

Search: Search took 0.12 seconds.

  1. Replies
    6
    Views
    2,830

    Re: XOR'ing BufferedImages onto a Graphics2D object

    why not? i had it working using paintComponent, but it was at least 5 times slower than using a buffer. plus, if i need to, i can using a SwingTimer to control the painting of the screen manually....
  2. Replies
    6
    Views
    2,830

    Re: XOR'ing BufferedImages onto a Graphics2D object

    i tried to make it short but it still ended up relatively long.. here's the code:


    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import javax.swing.*;
    import...
  3. Replies
    6
    Views
    2,830

    XOR'ing BufferedImages onto a Graphics2D object

    i've begun programming a game in java, and was wondering how one would XOR a sprite onto a Graphics2D object. i know about Graphics2D's setXORMode() method, but i'm unsure how to apply it correctly. ...
Results 1 to 3 of 3