1.引用的Jar 2. BitTransform.java package com.test;public class BitTransform { public static int getUShort(byte[] byteArray) { int ...
1.引用的Jar
2.
BitTransform.java
package com.test;public class BitTransform { public static int getUShort(byte[] byteArray) { int value = 0; value += (byteArray[0] & 0xff) | ((byteArray[1] & 0xff)<<8); return value; } public static int getInt(byte[] byteArray) { int value = 0; value += (byteArray[0] & 0xff) | ((byteArray[1] & 0xff)<<8) | ((byteArray[2] & 0xff)<<16) | ((byteArray[3] & 0xff)<<24); return value; } public static float getFloat(byte[] byteArray) { int valueInt = 0; valueInt += (byteArray[0] & 0xff) | ((byteArray[1] & 0xff)<<8) | ((byteArray[2] & 0xff)<<16) | ((byteArray[3] & 0xff)<<24); float value = Float.intBitsToFloat(valueInt); return value; }}
原标题:卫星云图与雷达图生成图片
关键词:图片
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们:
admin#shaoqun.com
(#换成@)。