• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SVG Path exported to JavaFX not working

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?):

 
Hold that thought. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic