Jos�, // Read the file. java.io.File jpegFile; java.awt.image.BufferedImage image = javax.imageio.ImageIO.read(jpegFile);
// Get a subimage. int x, y, width, height; java.awt.image.BufferedImage subImage = image.getSubImage(x, y, width, height); Brian >I need to manipulate a jpg file, to do something simple. I need to split >the file in several others files according to some (x,y) coordinates. >The problem is that I don?t know how to directly access the in memory >file in X, Y mode. >In the .NET framework they have a class (Bitmap) that represents any >kind of in memory file image, and I have the interface I need, but I?m >not finding something like this in Java. Can anyone help me? > >Jos� M. Sim�o > >=========================================================================== >To unsubscribe, send email to [EMAIL PROTECTED] and include in the body >of the message "signoff JAVA2D-INTEREST". For general help, send email to >[EMAIL PROTECTED] and include in the body of the message "help". =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
