Forum: Ruby-Gnome 2 Bug in Gdk::Pixbuf docs

Posted by Detlef Reichl (Guest)
on 2008-03-24 14:18
(Received via mailing list)
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
Posted by Marc Heiler (shevegen)
on 2008-03-24 22:42
> 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
Posted by Marc Heiler (shevegen)
on 2008-03-24 22:45
>   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
Posted by Detlef Reichl (Guest)
on 2008-03-24 23:07
(Received via mailing list)
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 Heiler:
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.