summaryrefslogtreecommitdiff
path: root/src/Image.cs
blob: 79ef4e13cdeb1fc35986c5ac042840e39e496437 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

namespace Compiz
{
	public class Image
	{
		[DllImport("compiz")]
			protected extern static bool openImageFile (string filename, out string returnFilename, out IntPtr returnFile);
		
		[DllImport("compiz")]
			protected extern static bool readPng (string filename, out byte[] data, out uint width, out uint height);
		
		[DllImport("compiz")]
			protected extern static bool readPngBuffer (byte[] buffer, out byte[] data, out uint width, out uint height);
	}
}