//BaseRecyclerViewAdapterHelper
Glide.with(context).load(p2).into((ImageView) holder.getView(R.id.iv_pic2));
1.fastjson List转JSONArray
List<T> list = new ArrayList<T>();
JSONArray array= JSONArray.parseArray(JSON.toJSONString(list));
2.fastjson JSONArray转List
JSONArray array = new JSONArray();
List<EventColAttr> list = JSONObject.parseArray(array.toJSONString(), EventColAttr.class);
3.fastjson 字符串转List
String str = "";
List<T> list = JSONObject.parseArray(str,T.class);
int[] inputArray = new int[200 * 150]; // 输入的一维数组,大小为200x150
int[] outputArray = new int[206 * 156]; // 输出的一维数组,大小为206x156
// 将输入数组转换为BufferedImage对象
BufferedImage inputImage = new BufferedImage(200, 150, BufferedImage.TYPE_INT_ARGB);
inputImage.setRGB(0, 0, 200, 150, inputArray, 0, 200);
// 创建一个新的BufferedImage对象,用于存储变换后的图像
BufferedImage outputImage = new BufferedImage(206, 156, BufferedImage.TYPE_INT_ARGB);
// 创建一个Graphics2D对象,用于绘制图像
Graphics2D g2d = outputImage.createGraphics();
// 设置边缘虚化效果
g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
g2d.drawImage(inputImage, 0, 0, 206, 156, null);
// 将输出图像的像素值存储到输出数组中
outputImage.getRGB(0, 0, 206, 156, outputArray, 0, 206);
// 关闭Graphics2D对象
g2d.dispose();
// 现在,outputArray中存储了边缘虚化并改变大小后的一维数组