Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/364.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Gtk3中的pixbuf.subpixbuf备选方案_Python_Gtk_Gdk_Gdkpixbuf_Gobject Introspection - Fatal编程技术网

Python Gtk3中的pixbuf.subpixbuf备选方案

Python Gtk3中的pixbuf.subpixbuf备选方案,python,gtk,gdk,gdkpixbuf,gobject-introspection,Python,Gtk,Gdk,Gdkpixbuf,Gobject Introspection,我有一个GTK+2应用程序正在移植到GTK+3。 我有一个功能可以剪切图像的某些部分- scaled_pb = pb.scale_simple(w,h, GdkPixbuf.InterpType.BILINEAR) scaled_pb = scaled_pb.subpixbuf(abs((width-w)/2),abs((height-h)/2), width, height) pb是传递给函数的pixbuf。返回缩放的\u pb。 所以我的问题是GTK3中pb.subpixebuf的替代方案

我有一个GTK+2应用程序正在移植到GTK+3。
我有一个功能可以剪切图像的某些部分-

scaled_pb = pb.scale_simple(w,h, GdkPixbuf.InterpType.BILINEAR)
scaled_pb = scaled_pb.subpixbuf(abs((width-w)/2),abs((height-h)/2), width, height)
pb
是传递给函数的pixbuf。返回缩放的\u pb。
所以我的问题是GTK3中pb.subpixebuf的替代方案是什么?我的应用程序现在没有运行,它告诉我Pixbuf对象没有subpixbuf属性

提前谢谢。

你想要的是。

你想要的是。

你想要的是。

你想要的是