This is in JDK 1.4.1 on both Windoze and Linux.
The following code:
AffineTransform aScaleTransform =
AffineTransform.getScaleInstance(aScaleFactor, aScaleFactor);
AffineTransformOp aScaleOp = new AffineTransformOp(aScaleTransform,
anInterpolationType);Rectangle aDestinationRegion = aScaleOp.getBounds2D(sourceImage).getBounds();
aScaleOp.filter(sourceImage, destinationBuffer);
scaleIntoSubimage = destinationBuffer.getSubimage(
aDestinationRegion.x,
aDestinationRegion.y,
aDestinationRegion.width,
aDestinationRegion.height);Joseph Panico [EMAIL PROTECTED]
_________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus
=========================================================================== 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".
