occur error when use GdkPixbuf savev method in gjs



Dear all,

I want to use savev to save a pixbuf to png/jpeg without options, but occur some problem:

pb.savev("screenshot.jpg", "jpeg", null, null);

I try to fill null, empty String or array but still occur different problem like "may not be null", "Unrecognized parameter () passed to JPEG saver".

and also found if use seed _javascript_ framework, i can use pb.save("filename", "jpeg") to save pixbuf. (but i want to write a gnome-shell extension, so needing to use gjs)

any idea for this problem?

my GTK version is 3.0.2-70.3

Thanks,
Yuren


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]