[gegl] Update gegl-sharp bindings for libgegl-0.1.so.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] Update gegl-sharp bindings for libgegl-0.1.so.
- Date: Wed, 11 Aug 2010 11:45:10 +0000 (UTC)
commit c7f63178697cfbacd367b97473eebe826898a7b2
Author: Ruben Vermeersch <ruben savanne be>
Date: Wed Aug 11 13:43:38 2010 +0200
Update gegl-sharp bindings for libgegl-0.1.so.
bindings/gegl-sharp/configure.ac | 2 +-
bindings/gegl-sharp/gegl/custom/Global.custom | 4 ++--
bindings/gegl-sharp/gegl/custom/Node.custom | 8 ++++----
bindings/gegl-sharp/gegl/gegl-sharp.dll.config.in | 2 +-
bindings/gegl-sharp/sample/TestGegl.cs | 10 +++++-----
bindings/gegl-sharp/sample/sample-out.png | Bin 39700 -> 38592 bytes
6 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/bindings/gegl-sharp/configure.ac b/bindings/gegl-sharp/configure.ac
index 186391d..13d621a 100644
--- a/bindings/gegl-sharp/configure.ac
+++ b/bindings/gegl-sharp/configure.ac
@@ -1,5 +1,5 @@
AC_INIT(README)
-AM_INIT_AUTOMAKE(gegl-sharp, 0.1.0)
+AM_INIT_AUTOMAKE(gegl-sharp, 0.1.1)
AM_MAINTAINER_MODE
case "$host" in
diff --git a/bindings/gegl-sharp/gegl/custom/Global.custom b/bindings/gegl-sharp/gegl/custom/Global.custom
index b3c0299..3a9331b 100644
--- a/bindings/gegl-sharp/gegl/custom/Global.custom
+++ b/bindings/gegl-sharp/gegl/custom/Global.custom
@@ -2,7 +2,7 @@
}
- [DllImport("libgegl-1.0.dll")]
+ [DllImport("libgegl-1.1.dll")]
static extern void gegl_init(int argc, IntPtr argv);
public static void Init()
@@ -10,7 +10,7 @@
gegl_init(0, IntPtr.Zero);
}
- [DllImport("libgegl-1.0.dll")]
+ [DllImport("libgegl-1.1.dll")]
static extern void gegl_exit();
public static void Exit()
diff --git a/bindings/gegl-sharp/gegl/custom/Node.custom b/bindings/gegl-sharp/gegl/custom/Node.custom
index 0096c4c..ebb6a51 100644
--- a/bindings/gegl-sharp/gegl/custom/Node.custom
+++ b/bindings/gegl-sharp/gegl/custom/Node.custom
@@ -1,4 +1,4 @@
- [DllImport("libgegl-1.0.dll")]
+ [DllImport("libgegl-1.1.dll")]
static extern IntPtr gegl_node_new_processor(IntPtr node, ref Gegl.Rectangle rectangle);
public Gegl.Processor Processor(Gegl.Rectangle rectangle)
@@ -16,7 +16,7 @@
Marshal.FreeHGlobal (native_value);
}
- [DllImport("libgegl-1.0.dll")]
+ [DllImport("libgegl-1.1.dll")]
static extern void gegl_node_get_property(IntPtr raw, IntPtr property_name, ref GLib.Value value);
public GLib.Value GetProperty (string property_name, ref GLib.Value value) {
@@ -29,7 +29,7 @@
[DllImport("libbabl-0.0.dll")]
static extern IntPtr babl_format(IntPtr format);
-/* [DllImport("libgegl-1.0.dll")]
+/* [DllImport("libgegl-1.1.dll")]
static extern void gegl_node_blit(IntPtr raw, ref Gegl.Rectangle roi, double scale, IntPtr format, int rowstride, byte[] destination_buf, int flags);
public byte[] Render(Gegl.Rectangle roi, double scale, string format, Gegl.BlitFlags flags) {
@@ -43,7 +43,7 @@
return buf;
}*/
- [DllImport("libgegl-1.0.dll")]
+ [DllImport("libgegl-1.1.dll")]
static extern Gegl.Rectangle gegl_node_get_bounding_box(IntPtr raw);
public Gegl.Rectangle BoundingBox {
diff --git a/bindings/gegl-sharp/gegl/gegl-sharp.dll.config.in b/bindings/gegl-sharp/gegl/gegl-sharp.dll.config.in
index 9781ebb..e474fe6 100644
--- a/bindings/gegl-sharp/gegl/gegl-sharp.dll.config.in
+++ b/bindings/gegl-sharp/gegl/gegl-sharp.dll.config.in
@@ -1,5 +1,5 @@
<configuration>
- <dllmap dll="libgegl-1.0.dll" target="libgegl-0 0 LIB_PREFIX@ 0 LIB_SUFFIX@"/>
+ <dllmap dll="libgegl-1.1.dll" target="libgegl-0 1 LIB_PREFIX@ 0 LIB_SUFFIX@"/>
<dllmap dll="libglib-2.0-0.dll" target="libglib-2 0 LIB_PREFIX@ 0 LIB_SUFFIX@"/>
<dllmap dll="libgobject-2.0-0.dll" target="libgobject-2 0 LIB_PREFIX@ 0 LIB_SUFFIX@"/>
<dllmap dll="libgthread-2.0-0.dll" target="libgthread-2 0 LIB_PREFIX@ 0 LIB_SUFFIX@"/>
diff --git a/bindings/gegl-sharp/sample/TestGegl.cs b/bindings/gegl-sharp/sample/TestGegl.cs
index b5ca5bf..e5a40e5 100644
--- a/bindings/gegl-sharp/sample/TestGegl.cs
+++ b/bindings/gegl-sharp/sample/TestGegl.cs
@@ -8,21 +8,21 @@ public class Test {
Node graph = new Node();
- Node load = graph.CreateChild("load");
+ Node load = graph.CreateChild("gegl:load");
load.SetProperty("path", "../../../docs/gallery/data/car-stack.jpg");
- Node scale = graph.CreateChild("scale");
+ Node scale = graph.CreateChild("gegl:scale");
scale.SetProperty("x", 0.50);
scale.SetProperty("y", 0.50);
- Node rotate = graph.CreateChild("rotate");
+ Node rotate = graph.CreateChild("gegl:rotate");
rotate.SetProperty("degrees", 45.0);
- Node brightness_contrast = graph.CreateChild("brightness-contrast");
+ Node brightness_contrast = graph.CreateChild("gegl:brightness-contrast");
brightness_contrast.SetProperty("contrast", 4.0);
brightness_contrast.SetProperty("brightness", -2.0);
- Node save = graph.CreateChild("png-save");
+ Node save = graph.CreateChild("gegl:png-save");
save.SetProperty("path", "sample-out.png");
load.Link(scale);
diff --git a/bindings/gegl-sharp/sample/sample-out.png b/bindings/gegl-sharp/sample/sample-out.png
index 38b179e..a08c15a 100644
Binary files a/bindings/gegl-sharp/sample/sample-out.png and b/bindings/gegl-sharp/sample/sample-out.png differ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]