Bug in Gdk::Pixbuf docs

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

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

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

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.:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs