0 Replies Latest reply on Sep 23, 2010 1:52 AM by 843802

    drawImage and jimi

      I tryed to paint an PCX-Image with Jimi, but it paints only a black rectangle. when I isolated the problem, there was instead of the black, a green rectangle. I made it grey, by comentig out the setBackground-method. so my question is, why drawImage dont works within Jimi.
      Thank you!

      [Edit]: or may there be an other solution? Tanks!

      my code is so far:
      import java.awt.*;
      import java.awt.event.*;
      import javax.swing.*;
      import com.sun.jimi.core.*;
      public class Qwg extends JPanel
           public JFrame shot;
           private Integer shknr;
           private String zeros;
           public Image image;
           public Qwg()
                shot = new JFrame();
                image = Jimi.getImage("dump005.pcx");
                shot.setSize(1024, 768/*image.getWidth(this), image.getHeight(this)*/);
           public void paint(Graphics g)
                Graphics2D gv = (Graphics2D) g;
                     gv.drawImage(image, 0, 0, null);
           public static void main(String[] argv)
                Qwg q = new Qwg();
      Edited by: nixphoe666 on 21.09.2010 00:45 /n/r

      Edited by: nixphoe666 on 23.09.2010 02:50