com.itextpdf.text.Image.getLayer()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(139)

本文整理了Java中com.itextpdf.text.Image.getLayer()方法的一些代码示例,展示了Image.getLayer()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Image.getLayer()方法的具体详情如下:
包路径:com.itextpdf.text.Image
类名称:Image
方法名:getLayer

Image.getLayer介绍

[英]Gets the layer this image belongs to.
[中]获取此图像所属的层。

代码示例

代码示例来源:origin: com.itextpdf/itextg

AffineTransform transform = new AffineTransform(a, b, c, d, e, f);
if (image.getLayer() != null)
  beginLayer(image.getLayer());
if (isTagged()) {
  if (inText)
  restoreState();
if (image.getLayer() != null)
  endLayer();
Annotation annot = image.getAnnotation();

代码示例来源:origin: com.itextpdf/itextpdf

AffineTransform transform = new AffineTransform(a, b, c, d, e, f);
if (image.getLayer() != null)
  beginLayer(image.getLayer());
if (isTagged()) {
  if (inText)
  restoreState();
if (image.getLayer() != null)
  endLayer();
Annotation annot = image.getAnnotation();

代码示例来源:origin: com.itextpdf/itextpdf

put(PdfName.WIDTH, new PdfNumber(image.getWidth()));
put(PdfName.HEIGHT, new PdfNumber(image.getHeight()));
if (image.getLayer() != null)
  put(PdfName.OC, image.getLayer().getRef());
if (image.isMask() && (image.getBpc() == 1 || image.getBpc() > 0xff))
  put(PdfName.IMAGEMASK, PdfBoolean.PDFTRUE);

代码示例来源:origin: com.itextpdf/itextg

put(PdfName.WIDTH, new PdfNumber(image.getWidth()));
put(PdfName.HEIGHT, new PdfNumber(image.getHeight()));
if (image.getLayer() != null)
  put(PdfName.OC, image.getLayer().getRef());
if (image.isMask() && (image.getBpc() == 1 || image.getBpc() > 0xff))
  put(PdfName.IMAGEMASK, PdfBoolean.PDFTRUE);

相关文章