Is there vala class that can rotate a bitmap? The way to accomplish this using C# is shown here (very slick) but the same code
public void RotateAndSaveImage(String input, String output)
{
using (Image img = Image.FromFile(input))
{
img.RotateFlip(RotateFlipType.Rotate90FlipNone);
img.Save(output, System.Drawing.Imaging.ImageFormat.Jpeg);
}
}
in vala causes
test.vala:48.22-48.24: error: syntax error, expected `)'
using (Image img = Image.FromFile(input))
^^^
I looked through the Valadoc but could not find an image class and vala Bitmap didn't seem very useful.