importjava.awt.image.BufferedImage;importjava.io.IOException;importjava.util.ArrayList;importjava.util.Collections;importjava.util.HashMap;importjava.util.List;importjava.util.Map;importnet.coobird.thumbnailator.Thumbnails;public classClothingColorController {//颜色标准数(固定差值)
public float colorNum = 51.0f;//颜色标准(倍数关系)
public static Map colorStandard = new HashMap();static{
colorStandard.put(0, "00");
colorStandard.put(1, "33");
colorStandard.put(2, "66");
colorStandard.put(3, "99");
colorStandard.put(4, "cc");
colorStandard.put(5, "ff");
}//十进制转十六进制
@SuppressWarnings({ "static-access", "deprecation"})public String tenToHex(intx) {
Integer ten= newInteger(x);
String hex=ten.toHexString(ten);returnhex;
}//十六进制转十进制
publicInteger hexToT