# Bug in Gdk::Pixbuf docs

**URL:** <https://www.ruby-forum.com/t/bug-in-gdk-pixbuf-docs/132758>\
**Category:** Ruby-Gnome 2\
**Created:** [March 24, 2008, 2:18pm UTC](https://www.ruby-forum.com/t/bug-in-gdk-pixbuf-docs/132758 "2008-03-24T14:18:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [March 24, 2008, 2:18pm UTC](https://www.ruby-forum.com/t/bug-in-gdk-pixbuf-docs/132758/1 "2008-03-24T14:18:54Z")

</div>

Hi,

the docs of Gdk::Pixbuf.saturate\_and\_pixelate are wrong. It always  
returns a newly created pixbuf, so it has to be:

Modifies saturation and optionally pixelates a copy of the source  
pixbuf(self). If saturation is 1.0 then saturation is not changed. If  
it’s less than 1.0, saturation is reduced (the image is darkened); if  
greater than 1.0, saturation is increased (the image is brightened). If  
pixelate is true, then pixels are faded in a checkerboard pattern to  
create a pixelated image. src and dest must have the same image format,  
size, and rowstride.  
\* saturation : saturation factor(Float)  
\* pixelate : whether to pixelate(true or false)  
\* Returns: modified version of a copy of src(self)

Cause i lost the password of my account :-/ someone else has to change  
it.

Cheers, detlef

---

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [March 24, 2008, 10:42pm UTC](https://www.ruby-forum.com/t/bug-in-gdk-pixbuf-docs/132758/2 "2008-03-24T22:42:24Z")

</div>

> Cause i lost the password of my account :-/ someone else has to change  
> it.

Done. If you notice an error let me know.

[http://ruby-gnome2.sourceforge.jp/hiki.cgi#saturate\_and\_pixelate](http://ruby-gnome2.sourceforge.jp/hiki.cgi#saturate_and_pixelate)

---

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [March 24, 2008, 10:45pm UTC](https://www.ruby-forum.com/t/bug-in-gdk-pixbuf-docs/132758/3 "2008-03-24T22:45:00Z")

</div>

> [http://ruby-gnome2.sourceforge.jp/hiki.cgi#saturate\_and\_pixelate](http://ruby-gnome2.sourceforge.jp/hiki.cgi#saturate_and_pixelate)

Sorry, wrong link (mispasted old buffer). Here should be the proper one:

[http://ruby-gnome2.sourceforge.jp/hiki.cgi?cmd=view&p=Gdk%3A%3APixbuf&key=saturate\_and\_pixelate#saturate\_and\_pixelate](http://ruby-gnome2.sourceforge.jp/hiki.cgi?cmd=view&p=Gdk%3A%3APixbuf&key=saturate_and_pixelate#saturate_and_pixelate)

---

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [March 24, 2008, 11:07pm UTC](https://www.ruby-forum.com/t/bug-in-gdk-pixbuf-docs/132758/4 "2008-03-24T23:07:08Z")

</div>

Hi,

i already fixed the docs myself. Kou sent me the password.

Your change is wrong. The sentence

src and dest must have the same image format, size, and rowstride.

is useless, cause dest is a copy of src, which is made by ruby-gnome  
itself.

Please revert it.

Cheers, detlef

Am Montag, den 24.03.2008, 22:45 +0100 schrieb Marc H.:
