Author: jerome
Date: 2008-12-12 15:32:54 +0100 (Fri, 12 Dec 2008)
New Revision: 3074
Modified:
software_suite_v2/software/control_center/branches/new_paths/control_center/sources/com/tuxdroid/cc/Utils/image.java
Log:
* Don't log image resizing.
Modified:
software_suite_v2/software/control_center/branches/new_paths/control_center/sources/com/tuxdroid/cc/Utils/image.java
===================================================================
---
software_suite_v2/software/control_center/branches/new_paths/control_center/sources/com/tuxdroid/cc/Utils/image.java
2008-12-12 14:31:33 UTC (rev 3073)
+++
software_suite_v2/software/control_center/branches/new_paths/control_center/sources/com/tuxdroid/cc/Utils/image.java
2008-12-12 14:32:54 UTC (rev 3074)
@@ -26,10 +26,7 @@
import java.awt.Image;
import java.awt.RenderingHints;
import java.awt.image.BufferedImage;
-
-import com.tuxdroid.cc.CcCommons;
-
public class image {
/***
* This function resize an Image passed in parameter ( new height and
with
@@ -40,14 +37,12 @@
* @param height
* @return a buffered resized image.
*/
- public static Image ImgResize(Image source, int width, int height) {
- CcCommons.logger.append("Resizing image ", true);
+ public static Image ImgResize(Image source, int width, int height) {
BufferedImage buf = new BufferedImage(width, height,
BufferedImage.TYPE_INT_ARGB);
Graphics2D g = buf.createGraphics();
g.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
RenderingHints.VALUE_INTERPOLATION_BILINEAR);
g.drawImage(source, 0, 0, width, height, null);
- g.dispose();
- CcCommons.logger.appendDone();
+ g.dispose();
return buf;
}
}
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn