Java Image utils

Java image utils purpose is to help scale or resize image. Also it includes public method which returns Dimension of closest size to scale.

Code examples:

ee.fj.utils.getScalingDimension(int fromWidth, int fromHeight, int toWidth, int toHeight);

Returns scaling dimension.

ee.fj.utils.resize(Image image, Dimension d);
ee.fj.utils.resize(Image image, int width, int height);

Returns resized image.

ee.fj.utils.scale(Image image, Dimension d);
ee.fj.utils.scale(Image image, int width, int height);

Returns scaled image.
Source code can be downloaded from Sourceforge.

  • Facebook
  • Twitter
  • Google
  • Google Plus
  • LinkedIn
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Comments are closed.