* 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:
parent
b08b51132f
commit
a3d22ce2c2
4 changed files with 34 additions and 1 deletions
|
@ -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>
|
2003-03-10 Miguel de Icaza <miguel@ximian.com>
|
||||||
|
|
||||||
* gtk/Application.cs: Do not allow instances of Application to be
|
* gtk/Application.cs: Do not allow instances of Application to be
|
||||||
|
|
|
@ -2518,7 +2518,7 @@
|
||||||
<parameter type="const-gchar*" name="key"/>
|
<parameter type="const-gchar*" name="key"/>
|
||||||
</parameters>
|
</parameters>
|
||||||
</method>
|
</method>
|
||||||
<method name="GetPixels" cname="gdk_pixbuf_get_pixels">
|
<method name="GetPixels" cname="gdk_pixbuf_get_pixels" hidden="1">
|
||||||
<return-type type="guchar*"/>
|
<return-type type="guchar*"/>
|
||||||
</method>
|
</method>
|
||||||
<method name="GetRowstride" cname="gdk_pixbuf_get_rowstride">
|
<method name="GetRowstride" cname="gdk_pixbuf_get_rowstride">
|
||||||
|
|
|
@ -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) {
|
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 ());
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -182,4 +182,16 @@
|
||||||
</attribute>
|
</attribute>
|
||||||
</data>
|
</data>
|
||||||
</rule>
|
</rule>
|
||||||
|
|
||||||
|
<rule>
|
||||||
|
<class name="GdkPixbuf">
|
||||||
|
<method>GetPixels</method>
|
||||||
|
</class>
|
||||||
|
<data>
|
||||||
|
<attribute target="method">
|
||||||
|
<name>hidden</name>
|
||||||
|
<value>1</value>
|
||||||
|
</attribute>
|
||||||
|
</data>
|
||||||
|
</rule>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
|
Loading…
Reference in a new issue