Why my image is in bad quality ?

Nobody nobody at nowhere.invalid
Wed Dec 16 20:27:31 EST 2015


On 2015年12月16日 06:04:37 -0800, fsn761304 wrote:
> pixbufObj = Gdk.pixbuf_get_from_window(window, x, y, width, height) ...
> image = Image.frombuffer("RGB", (width, height),
> pixbufObj.get_pixels(), 'raw', 'RGB', 0, 1)

The second-to-last argument should probably be Gdk.pixbuf_get_rowstride()
rather than 0.


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /