package javaforce.utils;
import javaforce.*;
import javaforce.awt.*;
/** ImageConvert utility. */
public class ImageConvert {
public static boolean debug = false;
public static boolean quiet = false;
public static void main(String[] args) {
if (args.length < 2) {
System.out.println("Usage : ImageConvert filein fileout [index=#] [scale=width,height] [size=width,height] [fill=aarrggbb] [quiet=true]");
System.out.println("Suppports : jpg, png, bmp, svg, ico, icns(output only)");
System.out.println(" index : ico index (input only) (default = 0)");
System.out.println(" scale : scale image by %");
System.out.println(" size : set new image size (default svg size = 256,256)");
System.out.println(" fill : background color (default = ff000000 [opaque black])");
return;
}
int index = 0;
int width = -1;
int height = -1;
float width_percent = 100.0f;
float height_percent = 100.0f;
for(int a=2;a