File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SVG Path exported to JavaFX not working

 
Mark Muggins
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I exported a svg image of some hills out of inkscape and into a JavaFX format. The format for javafx file produced is pre 1.2 so I edited the file to make it 1.2 compliant. The issue is I can;t get the path to display. I am not an expert on paths so I can only assume that something is wrong with the path. The class for the hill is below. Originally I could get the hill to display but I needed to extend the image so I took the svg path, copied it, flipped it 180 and pasted to the "end" of the first. No matter what I do now the hill path will not display.

I think maybe the path is too complex? Or am I doing something wrong?



I display this path by calling


The hill gets place in the scene contents of a stage object. Any help appreciated
 
Philippe Lhoste
Greenhorn
Posts: 28
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I could see your hill (mirrored, but you could mirror it programmatically) with the following code (and your class):

Ah, I had also to make a real function call (was your syntax inherited from pre-release JavaFX?):

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic