- 博客(0)
- 资源 (1)
空空如也
package com.test;package com.test;package com.test;package com.test;
package com.test;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
public class B {
public static void main(String[] args) {
File file = new File("c:\\a.jpg");
FileInputStream is = null;
try {
is = new FileInputStream(file);
} catch (FileNotFoundException e2) {
e2.printStackTrace();
// return rect;
}
BufferedImage sourceImg = null;
try {
sourceImg = javax.imageio.ImageIO.read(is);
} catch (IOException e1) {
e1.printStackTrace();
// return rect;
}
System.out.println("width = " + sourceImg.getWidth() + "height = "
+ sourceImg.getHeight());
}
}
package com.test;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
public class B {
public static void main(String[] args) {
File file = new File("c:\\a.jpg");
FileInputStream is = null;
try {
is = new FileInputStream(file);
} catch (FileNotFoundException e2) {
e2.printStackTrace();
// return rect;
}
BufferedImage sourceImg = null;
try {
sourceImg = javax.imageio.ImageIO.read(is);
} catch (IOException e1) {
e1.printStackTrace();
// return rect;
}
System.out.println("width = " + sourceImg.getWidth() + "height = "
+ sourceImg.getHeight());
}
}
package com.test;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
public class B {
public static void main(String[] args) {
File file = new File("c:\\a.jpg");
FileInputStream is = null;
try {
is = new FileInputStream(file);
} catch (FileNotFoundException e2) {
e2.printStackTrace();
// return rect;
}
BufferedImage sourceImg = null;
try {
sourceImg = javax.imageio.ImageIO.read(is);
} catch (IOException e1) {
e1.printStackTrace();
// return rect;
}
System.out.println("width = " + sourceImg.getWidth() + "height = "
+ sourceImg.getHeight());
}
}
package com.test;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
public class B {
public static void main(String[] args) {
File file = new File("c:\\a.jpg");
FileInputStream is = null;
try {
is = new FileInputStream(file);
} catch (FileNotFoundException e2) {
e2.printStackTrace();
// return rect;
}
BufferedImage sourceImg = null;
try {
sourceImg = javax.imageio.ImageIO.read(is);
} catch (IOException e1) {
e1.printStackTrace();
// return rect;
}
System.out.println("width = " + sourceImg.getWidth() + "height = "
+ sourceImg.getHeight());
}
}
2011-03-23
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人