* gdk/Pixbuf.custom: Add a nice version of Gdk.Pixbuf.Pixels that

return a 'byte *'.

* sources/Gdk.metadata:
* api/gdk-api.xml: Hide Gdk.Pixbuf.Pixels.

svn path=/trunk/gtk-sharp/; revision=12491
This commit is contained in:
Duncan Mak 2003-03-14 03:04:15 +00:00
parent b08b51132f
commit a3d22ce2c2
4 changed files with 34 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2003-03-13 Duncan Mak <duncan@ximian.com>
* gdk/Pixbuf.custom: Add a nice version of Gdk.Pixbuf.Pixels that
return a 'byte *'.
* sources/Gdk.metadata:
* api/gdk-api.xml: Hide Gdk.Pixbuf.Pixels.
2003-03-10 Miguel de Icaza <miguel@ximian.com>
* gtk/Application.cs: Do not allow instances of Application to be

View File

@ -2518,7 +2518,7 @@
<parameter type="const-gchar*" name="key"/>
</parameters>
</method>
<method name="GetPixels" cname="gdk_pixbuf_get_pixels">
<method name="GetPixels" cname="gdk_pixbuf_get_pixels" hidden="1">
<return-type type="guchar*"/>
</method>
<method name="GetRowstride" cname="gdk_pixbuf_get_rowstride">

View File

@ -145,3 +145,16 @@
public Gdk.Pixbuf CompositeColorSimple(int dest_width, int dest_height, Gdk.InterpType interp_type, int overall_alpha, int check_size, System.Drawing.Color color1, System.Drawing.Color color2) {
return CompositeColorSimple (dest_width, dest_height, interp_type, overall_alpha, check_size, (uint) color1.ToArgb (), (uint) color2.ToArgb ());
}
//
// the 'Pixels' property
//
[DllImport("libgdk_pixbuf-2.0-0.dll")]
static extern unsafe byte* gdk_pixbuf_get_pixels(IntPtr raw);
public unsafe byte* Pixels {
get {
byte *ret = gdk_pixbuf_get_pixels (Handle);
return ret;
}
}

View File

@ -182,4 +182,16 @@
</attribute>
</data>
</rule>
<rule>
<class name="GdkPixbuf">
<method>GetPixels</method>
</class>
<data>
<attribute target="method">
<name>hidden</name>
<value>1</value>
</attribute>
</data>
</rule>
</metadata>