java - Re-Sizing of an image? -
how retain resolution of image while reducing or expanding... there way...
you shoould check here, same problem exists:
http://forums.oracle.com/forums/thread.jspa?threadid=1270008
solution offered there:
tiffencodeparam tep = new tiffencodeparam(); // create {x,y}resolution fields. tifffield fieldxres = new tifffield(0x11a, tifffield.tiff_rational, 1, new long[][] {{dpi_x, 1}}); tifffield fieldyres = new tifffield(0x11b, tifffield.tiff_rational, 1, new long[][] {{dpi_y, 1}}); tep.setextrafields(new tifffield[] {fieldxres, fieldyres});
Comments
Post a Comment