/ Published in: Java
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
{
int width = bi.getWidth();
int height = bi.getHeight();
for(int i=0; i<width; i++)
for(int j=0; j<height/2; j++)
{
biFlip.setRGB(i, j, bi.getRGB(i, j));
biFlip.setRGB(i, (height-1)-j, bi.getRGB(i, j));
}
return biFlip;
}
{
int width = bi.getWidth();
int height = bi.getHeight();
for(int i=0; i<width/2; i++)
for(int j=0; j<height; j++)
{
biFlip.setRGB(i, j, bi.getRGB(i, j));
biFlip.setRGB((width-1)-i, j, bi.getRGB(i, j));
}
return biFlip;
}
Comments
 Subscribe to comments
                    Subscribe to comments
                
                