congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ThumbnailType.setImage
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.apache.xmpbox.type.ThumbnailType.setImage (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.typeThumbnailTypesetImage

Javadoc

Set Image data

Popular methods of ThumbnailType

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

Popular in Java

  • Making http requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • addToBackStack (FragmentTransaction)
  • runOnUiThread (Activity)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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