2005-03-28 Mike Kestner <mkestner@novell.com>
* gdk/Pixbuf.custom : add FromNative static method and obsolete CreateFromNative, which should've been static. [Fixes #74155] svn path=/trunk/gtk-sharp/; revision=42319
This commit is contained in:
parent
b35b48248c
commit
e13ae8a7d7
3 changed files with 42 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-03-28 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* gdk/Pixbuf.custom : add FromNative static method and obsolete
|
||||
CreateFromNative, which should've been static. [Fixes #74155]
|
||||
|
||||
2005-03-28 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* generator/Signal.cs : Dispose the values passed to
|
||||
|
|
|
@ -1619,5 +1619,35 @@ Gdk.Pixbuf pb = new Gdk.Pixbuf(memorystream);
|
|||
<remarks>The <paramref name="option_keys" /> and <paramref name="option_values" /> should contain key/value pairs. See <see cref="M:Gdk.Pixbuf.Save" /> for more details. Throws a <see cref="T:GLib.GException" /> if the save is not successful.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="FromDrawable">
|
||||
<MemberSignature Language="C#" Value="public static Gdk.Pixbuf FromDrawable (Gdk.Drawable src, Gdk.Colormap cmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height);" />
|
||||
<MemberType>Method</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gdk.Pixbuf</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
<Parameter Name="src" Type="Gdk.Drawable" />
|
||||
<Parameter Name="cmap" Type="Gdk.Colormap" />
|
||||
<Parameter Name="src_x" Type="System.Int32" />
|
||||
<Parameter Name="src_y" Type="System.Int32" />
|
||||
<Parameter Name="dest_x" Type="System.Int32" />
|
||||
<Parameter Name="dest_y" Type="System.Int32" />
|
||||
<Parameter Name="width" Type="System.Int32" />
|
||||
<Parameter Name="height" Type="System.Int32" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<summary>Creates a new Pixbuf object from a <see cref="T:Gdk.Drawable" />.</summary>
|
||||
<param name="src">a <see cref="T:Gdk.Drawable" /></param>
|
||||
<param name="cmap">a <see cref="T:Gdk.Colormap" /></param>
|
||||
<param name="src_x">a <see cref="T:System.Int32" /></param>
|
||||
<param name="src_y">a <see cref="T:System.Int32" /></param>
|
||||
<param name="dest_x">a <see cref="T:System.Int32" /></param>
|
||||
<param name="dest_y">a <see cref="T:System.Int32" /></param>
|
||||
<param name="width">a <see cref="T:System.Int32" /></param>
|
||||
<param name="height">a <see cref="T:System.Int32" /></param>
|
||||
<returns>a <see cref="T:Gdk.Pixbuf" /></returns>
|
||||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
||||
</Type>
|
||||
|
|
|
@ -208,6 +208,12 @@
|
|||
// operation will create the Pixbuf instead of two
|
||||
//
|
||||
|
||||
public static Gdk.Pixbuf FromDrawable (Gdk.Drawable src, Gdk.Colormap cmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height) {
|
||||
IntPtr raw_ret = gdk_pixbuf_get_from_drawable(IntPtr.Zero, src.Handle, cmap.Handle, src_x, src_y, dest_x, dest_y, width, height);
|
||||
return new Pixbuf (raw_ret);
|
||||
}
|
||||
|
||||
[Obsolete ("Replaced by static FromDrawable method")]
|
||||
public Gdk.Pixbuf CreateFromDrawable (Gdk.Drawable src, Gdk.Colormap cmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height) {
|
||||
IntPtr raw_ret = gdk_pixbuf_get_from_drawable((IntPtr) 0, src.Handle, cmap.Handle, src_x, src_y, dest_x, dest_y, width, height);
|
||||
return new Pixbuf (raw_ret);
|
||||
|
|
Loading…
Reference in a new issue