org.apache.poi.hssf.usermodel.HSSFPicture.getOptRecord()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(85)

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

HSSFPicture.getOptRecord介绍

暂无

代码示例

代码示例来源:origin: org.apache.poi/poi

public int getPictureIndex()
{
  EscherSimpleProperty property = getOptRecord().lookup(EscherProperties.BLIP__BLIPTODISPLAY);
  if (null == property){
    return -1;
  }
  return property.getPropertyValue();
}

代码示例来源:origin: org.apache.poi/poi

/**
 * The filename of the embedded image
 */
public String getFileName() {
  EscherComplexProperty propFile = getOptRecord().lookup(
         EscherProperties.BLIP__BLIPFILENAME);
  return (null == propFile)
    ? ""
    : StringUtil.getFromUnicodeLE(propFile.getComplexData()).trim();
}

代码示例来源:origin: com.haulmont.thirdparty/poi

/**
 * The color applied to the lines of this shape.
 */
public String getFileName() {
  EscherComplexProperty propFile = (EscherComplexProperty) getOptRecord().lookup(
         EscherProperties.BLIP__BLIPFILENAME);
  try {
    if (null == propFile){
      return "";
    }
    return new String(propFile.getComplexData(), "UTF-16LE").trim();
  } catch (UnsupportedEncodingException e) {
    return "";
  }
}

代码示例来源:origin: com.haulmont.thirdparty/poi

public int getPictureIndex()
{
  EscherSimpleProperty property = getOptRecord().lookup(EscherProperties.BLIP__BLIPTODISPLAY);
  if (null == property){
    return -1;
  }
  return property.getPropertyValue();
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

public int getPictureIndex()
{
  EscherSimpleProperty property = getOptRecord().lookup(EscherProperties.BLIP__BLIPTODISPLAY);
  if (null == property){
    return -1;
  }
  return property.getPropertyValue();
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

/**
 * The filename of the embedded image
 */
public String getFileName() {
  EscherComplexProperty propFile = getOptRecord().lookup(
         EscherProperties.BLIP__BLIPFILENAME);
  return (null == propFile)
    ? ""
    : StringUtil.getFromUnicodeLE(propFile.getComplexData()).trim();
}

相关文章