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

How to use
transcode
method
in
org.apache.batik.transcoder.SVGAbstractTranscoder

Best Java code snippets using org.apache.batik.transcoder.SVGAbstractTranscoder.transcode (Showing top 9 results out of 315)

origin: haraldk/TwelveMonkeys

private synchronized void init() throws TranscoderException {
  if (!initialized) {
    if (transcoderInput == null) {
      throw new IllegalStateException("input == null");
    }
    initialized = true;
    super.transcode(transcoderInput, null);
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Transcodes the specified Document as an image in the specified output.
 *
 * @param document the document to transcode
 * @param uri the uri of the document or null if any
 * @param output the ouput where to transcode
 * @exception TranscoderException if an error occured while transcoding
 */
protected void transcode(Document document,
             String uri,
             TranscoderOutput output)
    throws TranscoderException {
  super.transcode(document, uri, output);
  // We do this to hide 'ctx' from the SVGAbstractTranscoder
  // otherwise it will dispose of the context before we can
  // print the document.
  theCtx = ctx;
  ctx = null;
}
/**
origin: apache/batik

/**
 * Transcodes the specified Document as an image in the specified output.
 *
 * @param document the document to transcode
 * @param uri the uri of the document or null if any
 * @param output the ouput where to transcode
 * @exception TranscoderException if an error occured while transcoding
 */
protected void transcode(Document document,
             String uri,
             TranscoderOutput output)
    throws TranscoderException {
  super.transcode(document, uri, output);
  // We do this to hide 'ctx' from the SVGAbstractTranscoder
  // otherwise it will dispose of the context before we can
  // print the document.
  theCtx = ctx;
  ctx = null;
}
/**
origin: com.twelvemonkeys.imageio/imageio-batik

private synchronized void init() throws TranscoderException {
  if (!initialized) {
    if (transcoderInput == null) {
      throw new IllegalStateException("input == null");
    }
    initialized = true;
    super.transcode(transcoderInput, null);
  }
}
origin: danfickle/openhtmltopdf

@Override
protected void transcode(Document svg, String uri, TranscoderOutput out) throws TranscoderException {
  
  // Note: We have to initialize user agent here and not in ::createUserAgent() as method
  // is called before our constructor is called in the super constructor.
  this.userAgent = new OpenHtmlUserAgent(this.fontResolver);
  super.transcode(svg, uri, out);
  outputDevice.drawWithGraphics((float)x, (float)y, width, height, new OutputDeviceGraphicsDrawer() {
    @Override
    public void render(Graphics2D graphics2D) {
      /*
       * Do the real paint
       */
      PDFTranscoder.this.root.paint(graphics2D);
    }
  });
}

origin: fr.avianey.apache-xmlgraphics/batik

width  = (int)pageFormat.getImageableWidth();
height = (int)pageFormat.getImageableHeight();
super.transcode
  ((TranscoderInput)printedInputs.get(pageIndex),null);
curIndex = pageIndex;
origin: apache/batik

width  = (int)pageFormat.getImageableWidth();
height = (int)pageFormat.getImageableHeight();
super.transcode
  ((TranscoderInput)printedInputs.get(pageIndex),null);
curIndex = pageIndex;
origin: fr.avianey.apache-xmlgraphics/batik

super.transcode(document, uri, output);
origin: apache/batik

super.transcode(document, uri, output);
org.apache.batik.transcoderSVGAbstractTranscodertranscode

Javadoc

Transcodes the specified Document as an image in the specified output.

Popular methods of SVGAbstractTranscoder

  • setImageSize
    Sets document size according to the hints. Global variables width and height are modified.
  • createBridgeContext
    Factory method for constructing an configuring a BridgeContext so subclasses can insert new/modified
  • createUserAgent
  • getCanvasGraphicsNode

Popular in Java

  • Making http requests using okhttp
  • addToBackStack (FragmentTransaction)
  • notifyDataSetChanged (ArrayAdapter)
  • findViewById (Activity)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Collectors (java.util.stream)
  • JTable (javax.swing)
  • Best IntelliJ 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