Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Nobody Newsgroups: comp.lang.python Subject: Re: Why my image is in bad quality ? Date: Thu, 17 Dec 2015 01:27:31 +0000 Organization: A noiseless patient Spider Lines: 9 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Info: mx02.eternal-september.org; posting-host="152d4dee6f95183c956ee6fa63d7e69f"; logging-data="22655"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1++BK3Zzt1/SgDU1Bfcn/5S" User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) Cancel-Lock: sha1:eUHxIBKB8+kBV4XU9mYLHQf/XeI= Xref: csiph.com comp.lang.python:100549 On Wed, 16 Dec 2015 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.