I need to rotate a Pixbuf. The vala code contains
using Gst, GLib, Posix, Sqlite, Gdk;
public class RotateSaveImage
{
public void RotateSaveImage(string input, string output)
{
var img = new Pixbuf.from_file(input);
var rotate_image = img.rotate_simple(PixbufRotation.CLOCKWISE);
rotate_image.save(output, "jpeg");
}
}
The makefile contains
test_VALAFLAGS = --vapidir=@VAPIDIR@ --pkg gstreamer-0.10 --pkg glib-2.0 --pkg gio-2.0 --pkg posix --thread --pkg gstreamer-app-0.10 --pkg sqlite3 --pkg gtk+-3.0
Shouldn't --pkg gtk+-3.0 add gdk-pixbuf/gdk-pixdata.h?