summaryrefslogtreecommitdiff
path: root/src/Image.cs
blob: f7b94553cfb05f3f9b82541aa6b2f226e4c10d47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright 2006 Alp Toker <alp@atoker.com>
// This software is made available under the MIT License
// See COPYING for details

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);
	}
}