зеркало из https://github.com/mono/mail-archives.git
99 строки
3.8 KiB
HTML
99 строки
3.8 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Gtk-sharp-list] Pixbuf.CopyArea -- Destination Pixbuf != Null
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20Pixbuf.CopyArea%20--%20Destination%20Pixbuf%20%21%3D%20Null&In-Reply-To=42B06939.4070307%40utanet.at">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
|
<LINK REL="Previous" HREF="005986.html">
|
|
<LINK REL="Next" HREF="005989.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Gtk-sharp-list] Pixbuf.CopyArea -- Destination Pixbuf != Null</H1>
|
|
<B>Brad Taylor</B>
|
|
<A HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20Pixbuf.CopyArea%20--%20Destination%20Pixbuf%20%21%3D%20Null&In-Reply-To=42B06939.4070307%40utanet.at"
|
|
TITLE="[Gtk-sharp-list] Pixbuf.CopyArea -- Destination Pixbuf != Null">brad at getcoded.net
|
|
</A><BR>
|
|
<I>Wed Jun 15 14:40:11 EDT 2005</I>
|
|
<P><UL>
|
|
<LI>Previous message: <A HREF="005986.html">[Gtk-sharp-list] Pixbuf.CopyArea -- Destination Pixbuf != Null
|
|
</A></li>
|
|
<LI>Next message: <A HREF="005989.html">[Gtk-sharp-list] GtkEntry: UpperCase, NormalCase or LowerCase
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#5988">[ date ]</a>
|
|
<a href="thread.html#5988">[ thread ]</a>
|
|
<a href="subject.html#5988">[ subject ]</a>
|
|
<a href="author.html#5988">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>Hi,
|
|
|
|
><i> maybe someone can give me a short hint. I am new to GTK programming and
|
|
</I>><i> currently I am playing around with the basic functions. in the
|
|
</I>><i> following example,
|
|
</I>><i> what do I have to assign to the pixbuf variable to avoid the
|
|
</I>><i> "dest_pixbuf != NULL' failed" error ?
|
|
</I>
|
|
[...]
|
|
|
|
><i> public PicChanger(string filename)
|
|
</I>><i> {
|
|
</I>><i> Console.WriteLine(filename);
|
|
</I>><i> Gdk.Pixbuf tempPixbuf = new Gdk.Pixbuf(filename);
|
|
</I>><i> tempPixbuf.CopyArea(100,100,50,50,pixbuf,0,0);
|
|
</I>
|
|
Like all C# classes, you need to intialize pixbuf before using it, i.e.:
|
|
|
|
pixbuf = new Gdk.Pixbuf (...);
|
|
|
|
Several argument lists are available for this constructor. You can find
|
|
them all at <A HREF="http://go-mono.org/docs/monodoc.ashx?link=T%3aGdk.Pixbuf%2f%">http://go-mono.org/docs/monodoc.ashx?link=T%3aGdk.Pixbuf%2f%</A>
|
|
2a.
|
|
|
|
><i> }
|
|
</I>
|
|
--
|
|
Brad Taylor
|
|
Genome Software LLC
|
|
<A HREF="http://www.getcoded.net">http://www.getcoded.net</A>
|
|
-------------- next part --------------
|
|
A non-text attachment was scrubbed...
|
|
Name: not available
|
|
Type: application/pgp-signature
|
|
Size: 189 bytes
|
|
Desc: This is a digitally signed message part
|
|
Url : <A HREF="http://galactus.ximian.com/pipermail/gtk-sharp-list/attachments/20050615/2d846864/attachment.bin">http://galactus.ximian.com/pipermail/gtk-sharp-list/attachments/20050615/2d846864/attachment.bin</A>
|
|
</PRE>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI>Previous message: <A HREF="005986.html">[Gtk-sharp-list] Pixbuf.CopyArea -- Destination Pixbuf != Null
|
|
</A></li>
|
|
<LI>Next message: <A HREF="005989.html">[Gtk-sharp-list] GtkEntry: UpperCase, NormalCase or LowerCase
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#5988">[ date ]</a>
|
|
<a href="thread.html#5988">[ thread ]</a>
|
|
<a href="subject.html#5988">[ subject ]</a>
|
|
<a href="author.html#5988">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
|
|
<hr>
|
|
<a href="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">More information about the Gtk-sharp-list
|
|
mailing list</a><br>
|
|
</body></html>
|