本文整理了Java中com.itextpdf.text.Image.setUrl()
方法的一些代码示例,展示了Image.setUrl()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Image.setUrl()
方法的具体详情如下:
包路径:com.itextpdf.text.Image
类名称:Image
方法名:setUrl
[英]Sets the url of the image
[中]设置图像的url
代码示例来源:origin: com.itextpdf/itextg
/** Reads a PNG from an url.
* @param url the url
* @throws IOException on error
* @return the image
*/
public static Image getImage(URL url) throws IOException {
InputStream is = null;
try {
is = url.openStream();
Image img = getImage(is);
img.setUrl(url);
return img;
}
finally {
if (is != null) {
is.close();
}
}
}
代码示例来源:origin: com.itextpdf/itextpdf
/** Reads a PNG from an url.
* @param url the url
* @throws IOException on error
* @return the image
*/
public static Image getImage(URL url) throws IOException {
InputStream is = null;
try {
is = url.openStream();
Image img = getImage(is);
img.setUrl(url);
return img;
}
finally {
if (is != null) {
is.close();
}
}
}
代码示例来源:origin: com.itextpdf/itextg
/** Reads a BMP from an url.
* @param url the url
* @throws IOException on error
* @return the image
*/
public static Image getImage(URL url) throws IOException {
InputStream is = null;
try {
is = url.openStream();
Image img = getImage(is);
img.setUrl(url);
return img;
}
finally {
if (is != null) {
is.close();
}
}
}
代码示例来源:origin: com.itextpdf/itextpdf
/** Reads a BMP from an url.
* @param url the url
* @throws IOException on error
* @return the image
*/
public static Image getImage(URL url) throws IOException {
InputStream is = null;
try {
is = url.openStream();
Image img = getImage(is);
img.setUrl(url);
return img;
}
finally {
if (is != null) {
is.close();
}
}
}
代码示例来源:origin: com.itextpdf/itextg
img.setUrl(fromUrl);
GifFrame gf = new GifFrame();
gf.image = img;
代码示例来源:origin: com.itextpdf/itextpdf
img.setUrl(fromUrl);
GifFrame gf = new GifFrame();
gf.image = img;
内容来源于网络,如有侵权,请联系作者删除!