Tabnine Logo
SVGConverter.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.batik.apps.rasterizer.SVGConverter
constructor

Best Java code snippets using org.apache.batik.apps.rasterizer.SVGConverter.<init> (Showing top 4 results out of 315)

origin: com.xpn.xwiki.platform/xwiki-core

public byte[] getSVGImage(int hashCode, String content, String extension, int height, int width) throws IOException, SVGConverterException {
   File dfile = getTempFile(hashCode, "svg");
   if (!dfile.exists()) {
     FileWriter fwriter = new FileWriter(dfile);
     fwriter.write(content);
     fwriter.flush();
     fwriter.close();
   }
  File ofile = getTempFile(hashCode, extension);
  //TODO implement conversion HERE
  
  SVGConverter conv = new SVGConverter();
  // TODO PNG ONLY
  conv.setDestinationType(DestinationType.PNG);
  conv.setDst(ofile);
  conv.setHeight(height);
  conv.setWidth(width);
  String[] sources = {dfile.getAbsolutePath()};
  conv.setSources(sources);
  conv.execute();
  
  FileInputStream fis = new FileInputStream(ofile);
  byte[] result = new byte[(int)ofile.length()];
  fis.read(result);
  return result;
}

origin: org.apache.xmlgraphics/batik-svgrasterizer

public void execute(){
  SVGConverter c = new SVGConverter(this);
origin: fr.avianey.apache-xmlgraphics/batik

public void execute(){
  SVGConverter c = new SVGConverter(this);
origin: apache/batik

public void execute(){
  SVGConverter c = new SVGConverter(this);
org.apache.batik.apps.rasterizerSVGConverter<init>

Popular methods of SVGConverter

  • execute
    Starts the conversion process.
  • setDestinationType
    Sets the destinationType attribute value. Should not be null.
  • setDst
    When converting a single source, dst can be a file. Othewise, it should be a directory.
  • setHeight
    In less than or equal to zero, the height is not constrained on the output image. The height is in u
  • setSources
    Sets the list of individual SVG sources. The strings can be either URLs or file names. Note that inv
  • setWidth
    In less than or equal to zero, the width is not constrained on the output image. The width is in use
  • computeDstFiles
    Populates a vector with destination files names computed from the names of the files in the sources
  • computeSources
    Populates a vector with the set of SVG files from the srcDir if it is not null and with the sources
  • computeTranscodingHints
    Computes the set of transcoding hints to use for the operation
  • createOutputDir
    Creates directories for output files if needed.
  • getDestinationFile
    Get the name of the result image file.This method modifies the result filename, it changes the exist
  • getFileNRef
  • getDestinationFile,
  • getFileNRef,
  • getSecurityOff,
  • isFile,
  • isWriteable,
  • setAllowedScriptTypes,
  • setAlternateStylesheet,
  • setArea,
  • setBackgroundColor

Popular in Java

  • Creating JSON documents from java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • setRequestProperty (URLConnection)
  • startActivity (Activity)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Collectors (java.util.stream)
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JCheckBox (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • 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