Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2015
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. String svg_URI_input = Paths.get("/home/ivan/Documentos/imagem/Svg2.svg").toUri().toURL().toString();
  2. TranscoderInput input_svg_image = new TranscoderInput(svg_URI_input);
  3.  
  4.  
  5.  
  6. OutputStream png_ostream = new FileOutputStream("/home/ivan/Documentos/imagem/tica.png");
  7. TranscoderOutput output_png_image = new TranscoderOutput(png_ostream);
  8.  
  9.  
  10. // Step-3: Create PNGTranscoder and define hints if required
  11. PNGTranscoder my_converter = new PNGTranscoder();
  12.  
  13.  
  14. // Step-4: Convert and Write output
  15. my_converter.transcode(input_svg_image, output_png_image);
  16.  
  17.  
  18. // Step 5- close / flush Output Stream
  19. png_ostream.flush();
  20. png_ostream.close();
  21.  
  22. }
  23.  
  24. on element <image> can't be opened because:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement