git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1861958 13f79535-47bb-0310-9956-ffa450edef68pull/158/head
assert(graphics != null); | assert(graphics != null); | ||||
final String contentType = fill.getContentType(); | final String contentType = fill.getContentType(); | ||||
if (contentType == null || contentType.isEmpty()) { | |||||
return TRANSPARENT; | |||||
} | |||||
ImageRenderer renderer = DrawPictureShape.getImageRenderer(graphics, contentType); | ImageRenderer renderer = DrawPictureShape.getImageRenderer(graphics, contentType); | ||||
@Override | @Override | ||||
public String getContentType() { | public String getContentType() { | ||||
if (blip == null || !blip.isSetEmbed() || blip.getEmbed().isEmpty()) { | |||||
return null; | |||||
} | |||||
/* TOOD: map content-type */ | /* TOOD: map content-type */ | ||||
return getPart().getContentType(); | return getPart().getContentType(); | ||||
} | } |