graphicsbuilder

How to use Grails j2d plugin to scale an image

I'm using grails j2d which in turns uses GraphicsBuilder to make a simple service to scale an image. My problem is specifically accessing the downloaded image height and width attributes in order to pass the correct parameters to the scale method. How do I access these attributes inside the transformations closure? Controller{ def sca...

How to determine the pixel size of text using Groovy's GraphicsBuilder module?

If I am drawing images using Groovy's GraphicsBuilder, how do I determine the size of the text I am drawing? I could use Java's FontMetrics class but it requires a Graphics object and I'm not sure how to obtain one when using GraphicsBuilder. ...