congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ThumbnailType.setFormat
Code IndexAdd Tabnine to your IDE (free)

How to use
setFormat
method
in
org.apache.xmpbox.type.ThumbnailType

Best Java code snippets using org.apache.xmpbox.type.ThumbnailType.setFormat (Showing top 3 results out of 315)

origin: apache/pdfbox

/**
 * Add thumbnail to thumbnails list
 * 
 * @param height
 *            height format
 * @param width
 *            width format
 * @param format
 *            thumbnail format
 * @param img
 *            Image data
 */
public void addThumbnails(Integer height, Integer width, String format, String img)
{
  if (altThumbs == null)
  {
    altThumbs = createArrayProperty(THUMBNAILS, Cardinality.Alt);
    addProperty(altThumbs);
  }
  ThumbnailType thumb = new ThumbnailType(getMetadata());
  thumb.setHeight(height);
  thumb.setWidth(width);
  thumb.setFormat(format);
  thumb.setImage(img);
  altThumbs.getContainer().addProperty(thumb);
}
origin: com.github.lafa.pdfbox/xmpbox

/**
 * Add thumbnail to thumbnails list
 * 
 * @param height
 *            height format
 * @param width
 *            width format
 * @param format
 *            thumbnail format
 * @param img
 *            Image data
 */
public void addThumbnails(Integer height, Integer width, String format, String img)
{
  if (altThumbs == null)
  {
    altThumbs = createArrayProperty(THUMBNAILS, Cardinality.Alt);
    addProperty(altThumbs);
  }
  ThumbnailType thumb = new ThumbnailType(getMetadata());
  thumb.setHeight(height);
  thumb.setWidth(width);
  thumb.setFormat(format);
  thumb.setImage(img);
  altThumbs.getContainer().addProperty(thumb);
}
origin: org.apache.pdfbox/xmpbox

/**
 * Add thumbnail to thumbnails list
 * 
 * @param height
 *            height format
 * @param width
 *            width format
 * @param format
 *            thumbnail format
 * @param img
 *            Image data
 */
public void addThumbnails(Integer height, Integer width, String format, String img)
{
  if (altThumbs == null)
  {
    altThumbs = createArrayProperty(THUMBNAILS, Cardinality.Alt);
    addProperty(altThumbs);
  }
  ThumbnailType thumb = new ThumbnailType(getMetadata());
  thumb.setHeight(height);
  thumb.setWidth(width);
  thumb.setFormat(format);
  thumb.setImage(img);
  altThumbs.getContainer().addProperty(thumb);
}
org.apache.xmpbox.typeThumbnailTypesetFormat

Javadoc

Set Format

Popular methods of ThumbnailType

  • <init>
  • addSimpleProperty
  • getFirstEquivalentProperty
  • getFormat
    Get Format
  • getHeight
    Get Height
  • getImage
    Get The img data
  • getWidth
    Get Width
  • setAttribute
  • setHeight
    Set Height
  • setImage
    Set Image data
  • setWidth
    Set Width
  • setWidth

Popular in Java

  • Making http requests using okhttp
  • setRequestProperty (URLConnection)
  • addToBackStack (FragmentTransaction)
  • setScale (BigDecimal)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now