From e6f24508c409cf334252975d8600843e0b0bd2b3 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Thu, 20 Feb 2003 03:56:51 +0000 Subject: [PATCH] Improve Improve svn path=/trunk/gtk-sharp/; revision=11760 --- doc/en/Gdk/Pixbuf.xml | 73 ++++++++++++++++++++++++++++++++++--------- 1 file changed, 59 insertions(+), 14 deletions(-) diff --git a/doc/en/Gdk/Pixbuf.xml b/doc/en/Gdk/Pixbuf.xml index 253cf6842..c99760829 100644 --- a/doc/en/Gdk/Pixbuf.xml +++ b/doc/en/Gdk/Pixbuf.xml @@ -7,13 +7,30 @@ Not thread safe - Represents an image in memory + Image representation. - - The Gdk.Pixbuf class is used to represent an image in - memory. The in-memory representation uses either a three - byte RGB representation or a four byte RGBA representation. - + + The Gdk.Pixbuf class is used to represent an image in + memory. The in-memory representation uses either a three + byte RGB representation or a four byte RGBA representation. + + + Pixbufs can be created from a number of sources: image files + in an assorted set of file formats (png, tiff, jpg, gif, xpm, + pcx, ico, xpm, xbm); Drawables (which can be windows on the X + server, or off-screen images in the X server) or in-memory + images. + + + A pixbuf can be rendered, scaled or composited into another + pixbuf, into a window on the X server, or on a drawable in the + X server. Various rendering methods are provided for this + purpose. + + + Pixbufs can also be saved to a number of different file + formats. + @@ -63,7 +80,10 @@ The return value is an initialized Pixbuf class - + + This creates a Pixbuf from a class that implements the + Gdk.Pixdata interface. + @@ -1548,19 +1568,32 @@ Height of the image The height in pixels of the image - None. + + + See also the , and for more information about + the layout of the image. + + - + Property System.Byte - To be added - To be added: an object of type 'byte' - To be added + The image pixel information + Returns the array with the pixel information + + See also the , , and for more information about + the layout of the image. + @@ -1591,7 +1624,12 @@ The width of the image The width in pixels of the image - None. + + + This is the width of the image in pixels. See the property as well. + + @@ -1604,6 +1642,8 @@ The number of channels on a Pixbuf Returns the number of channels on a Pixbuf + The possible values are 3 (for RGB encoding) and 4 (for RGB + with an alpha transparency channel encoding. @@ -1618,7 +1658,12 @@ The rowstride property for the Pixbuf - Queries the rowstride of a pixbuf, which is the number of bytes between rows. + Queries the rowstride of a pixbuf. The rowstring is the + number of bytes occupied by a row of pixels. Sometimes + for alignment purposes, the rowstride might be bigger than + the actual width of the image. Applications that + manually process data from the image would scan lines by + adding the value of the Rowstride.