DEXTUploadJ
DEXTUploadJ References > ImageTool > Method > setSize

setSize Method

Version
1.0.1.0
Environment
Sun JDK1.4
Target
ImageTool
Signature 1
public void setSize(float _ResizeRatio)
Signature 2
public void setSize(int _Width, int _Height)
Parameters
Name Signature Description
_ResizeRatiofloatSize ratio of image to be adjusted. Must be bigger than 0. (1.0 is maintain, 2.0 is enlarge twice, 0.5 is reduce by half)
_WidthintWidth of image
_HeightintHeight of image
Return value
Throws
Description(Signature 1)

Change the size of current image according to inputted ratio.

Description(Signature 2)

Change the size of current image.

Usage 1
ImageTool image = ImageTool.getImageTool(file);

...omitted...

image.setSize(0.5f);
							
Usage 2
ImageTool image = ImageTool.getImageTool(file);

...omitted...

image.setSize(100,200);