   [java] flip image problem for win2000
  hi guys!i am having a strange problem which i am not facing on other OS like win98 95 XP but 2000 giving me problem. i have a small web base game on applet and my all sprite has one direction so for the right direction i do something likeg.drawImage(image,x+width,y,-width,height) so that change sthe direction of an object easily but in windows 2000 it doesnt work why is that??? u can see my demo gane ib my website http://greenbox.webdare.com then go in online web game and click Mango eater. Please help   
  Well since I told you to flip images this way,Let's post a better method:int[] pixels=new int[img.getWidth(this)*img.getHeight(this)];PixelGrabber grabber=new PixelGrabber(img.getSource(),0,0,img.getWidth(this),img.getHeight(this), pixels,0,img.getWidth(this));try{grabber.grabPixels();}catch(Exception e){}int[] pixels2=new int[pixels.length];for(int x=0;x<img.getWidth(this);x++){for(int y=0;y<img.getHeight(this);x++){pixels2[y*img.getWidth(this)+(img.getWidth(this)-x)]=pixels[y*img.getWidth(this)+x];}}MemoryImageSource src=new MemoryImageSource(img.getWidth(this),img.getHeight(this),pixels2,0,img.getWidth(this));Image imgFlipped=createImage(src);This should create a new Image, imgFlipped, that contains the same Image as img, but flipped on the X axis.   ;  Another solution, which I use, is:public static BufferedImage getTransformedImage(Image im, float x, float y, int transparent){AffineTransform transform = new AffineTransform();transform.scale(x,y);transform.translate((x-1)* im.getWidth(null) / 2,(y-1)* im.getHeight(null) /2);BufferedImage newImage = createImage(   im.getWidth(null),im.getHeight(null),transparent);Graphics2D g = newImage.createGraphics();g.drawImage(im,transform,null);g.dispose();return newImage;}// flip from left to right etc.public static BufferedImage getMirrorImage(Image im){return getTransformedImage(im,-1,1); }// flip to upside down, etc. public static BufferedImage getFlippedImage(Image im){return getTransformedImage(im,1,-1);}the createImage method you see used, is simply a method to create a bufferedImage. I use the GraphicsDevice's method, but you can also use the Toolkit methods.   ;  Oh yes, one more thing... If you're able to test on Windows 2000, can you test my method, please? I'd hate to be making a game that would break on win2k ;)   