From 3c690c2a2612c3ca6f1a3cd93228491c3c462010 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Fri, 21 Oct 2005 15:26:09 +0000 Subject: [PATCH] Some fixes svn path=/trunk/gtk-sharp/; revision=52025 --- doc/en/Gdk/Pixbuf.xml | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/doc/en/Gdk/Pixbuf.xml b/doc/en/Gdk/Pixbuf.xml index 17ac6daf2..75e84ec55 100644 --- a/doc/en/Gdk/Pixbuf.xml +++ b/doc/en/Gdk/Pixbuf.xml @@ -1348,8 +1348,8 @@ Gdk.Pixbuf pb = new Gdk.Pixbuf(memorystream, 10, 10); - Makes a new Pixbuf object from a . - a containing the image + Makes a new Pixbuf object from a containing an encoded image. + a containing the image in one of the formats recognized by Pixbuf (png, tiff, jpeg, etc). Useful for creating a Pixbuf from an image file in memory. @@ -1407,19 +1407,20 @@ Gdk.Pixbuf pb = new Gdk.Pixbuf(buffer, 10, 10); - Public constructor; creates a new - and allocates a buffer for it. Note that the buffer is not cleared; - you will have to fill it completely yourself. - - a - a - a - a - a - a - a - a - + Public constructor; creates a new from an in-memory RGB or RGBA buffer. + The data that contains the image in RGB or RGBA format. + The for the image data. + Whether the data contains an alpha channel (RGBA format). + Currently only 8 is supported (1 byte per channel). + Width of the image in pixels. + Height of the image in pixels. + The rowstride is the number of bytes consumed by a single row in the image. + A routine to invoke when the reference count to this image reaches zero. + The image must be in RGB format or RGBA format, where each channel takes one byte. + + + For performance reasons sometimes images have some padding at the end of each row, this is done to ensure that access to the data is aligned. The argument is the size in bytes of each row. If no padding is added the is just: * (3 + ). + @@ -1881,8 +1882,8 @@ Gdk.Pixbuf pb = new Gdk.Pixbuf(buffer, 10, 10); To be added. To be added. - To be added. - To be added. + Constructor for pixbufs that that have embedded images created with the gdk-pixbuf-source program. + This is used to create pixbufs from images that have been embedded using the gdk-pixbuf-csource command line tool. @@ -1899,4 +1900,4 @@ Gdk.Pixbuf pb = new Gdk.Pixbuf(buffer, 10, 10); - + \ No newline at end of file