Tabnine Logo
PDInlineImage.createColorSpace
Code IndexAdd Tabnine to your IDE (free)

How to use
createColorSpace
method
in
org.apache.pdfbox.pdmodel.graphics.image.PDInlineImage

Best Java code snippets using org.apache.pdfbox.pdmodel.graphics.image.PDInlineImage.createColorSpace (Showing top 3 results out of 315)

origin: apache/pdfbox

@Override
public PDColorSpace getColorSpace() throws IOException
{
  COSBase cs = parameters.getDictionaryObject(COSName.CS, COSName.COLORSPACE);
  if (cs != null)
  {
    return createColorSpace(cs);
  }
  else if (isStencil())
  {
    // stencil mask color space must be gray, it is often missing
    return PDDeviceGray.INSTANCE;
  }
  else
  {
    // an image without a color space is always broken
    throw new IOException("could not determine inline image color space");
  }
}
 
origin: org.apache.pdfbox/pdfbox

@Override
public PDColorSpace getColorSpace() throws IOException
{
  COSBase cs = parameters.getDictionaryObject(COSName.CS, COSName.COLORSPACE);
  if (cs != null)
  {
    return createColorSpace(cs);
  }
  else if (isStencil())
  {
    // stencil mask color space must be gray, it is often missing
    return PDDeviceGray.INSTANCE;
  }
  else
  {
    // an image without a color space is always broken
    throw new IOException("could not determine inline image color space");
  }
}
 
origin: com.github.lafa.pdfbox/pdfbox

@Override
public PDColorSpace getColorSpace() throws IOException
{
  COSBase cs = parameters.getDictionaryObject(COSName.CS, COSName.COLORSPACE);
  if (cs != null)
  {
    return createColorSpace(cs);
  }
  else if (isStencil())
  {
    // stencil mask color space must be gray, it is often missing
    return PDDeviceGray.INSTANCE;
  }
  else
  {
    // an image without a color space is always broken
    throw new IOException("could not determine inline image color space");
  }
}

org.apache.pdfbox.pdmodel.graphics.imagePDInlineImagecreateColorSpace

Popular methods of PDInlineImage

  • <init>
    Creates an inline image from the given parameters and data.
  • getFilters
    Returns a list of filters applied to this stream, or null if there are none.
  • getBitsPerComponent
  • getColorSpace
  • getData
    Returns the inline image data.
  • getDecode
  • getHeight
  • getImage
  • getWidth
  • isStencil
  • toLongName
  • createInputStream
  • toLongName,
  • createInputStream,
  • getColorKeyMask

Popular in Java

  • Parsing JSON documents to java classes using gson
  • requestLocationUpdates (LocationManager)
  • runOnUiThread (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • String (java.lang)
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top PhpStorm plugins
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