GraphicsBuilder: exporting to images - No Fluff Just Stuff

GraphicsBuilder: exporting to images

Posted by: Andres Almiray on February 18, 2008

I was happily hacking around some days ago when I suddenly had the need to do a quick image based on an existing one, basically crop it and paint a background. I was about to fire up the GIMP but remembered that it takes forever to initialize in my laptop (2 gigs of RAM, are you kidding me?) so I decided to travel the adventurous road of manipulating the image with GraphicsPad.

If you have played with GraphicsPad you know that it is light years behind of GIMP in terms of being a full fledged Image Manipulation Program, but it got the job done pretty easily, until it was time to save the new image, GraphicsPad doesn't have a "Save as Image..." option! oops

I had to save the script and then paste the code in groovyConsole and execute it. I'll make sure to have that option enabled in the next version, Svg2Groovy should also have a similar one. The good news is that this feature is halfway done now that GraphicsRenderer has a set of renderToFile methods (handy companions to render) that take care of creating, drawing and writing the image to a file in one swoop.

Keep on Groovying!
Andres Almiray

About Andres Almiray

Andres is a Java/Groovy developer and a Java Champion with more than 20 years of experience in software design and development. He has been involved in web and desktop application development since the early days of Java. Andres is a true believer in open source and has participated on popular projects like Groovy, Griffon, and DbUnit, as well as starting his own projects (Json-lib, EZMorph, GraphicsBuilder, JideBuilder). Founding member of the Griffon framework and Hackergarten community event. https://ch.linkedin.com/in/aalmiray

Why Attend the NFJS Tour?

  • » Cutting-Edge Technologies
  • » Agile Practices
  • » Peer Exchange

Current Topics:

  • Languages on the JVM: Scala, Groovy, Clojure
  • Enterprise Java
  • Core Java, Java 8
  • Agility
  • Testing: Geb, Spock, Easyb
  • REST
  • NoSQL: MongoDB, Cassandra
  • Hadoop
  • Spring 4
  • Cloud
  • Automation Tools: Gradle, Git, Jenkins, Sonar
  • HTML5, CSS3, AngularJS, jQuery, Usability
  • Mobile Apps - iPhone and Android
  • More...
Learn More »