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

Popular posts from this blog

How can I edit my VIM config so that Vim treats ".ejs" files the same as it currently treats my html files? -

Python __call__ special method practical example -