source: libpipi/trunk/pipi-sharp/test.cs @ 2902

Last change on this file since 2902 was 2869, checked in by Sam Hocevar, 12 years ago

Reorganise ThePimp? and pipi-sharp, adding a test program and allowing to
build using the autotools.

File size: 848 bytes
Line 
1/*
2 *  Test          .NET bindings test program
3 *  Copyright (c) 2008 Sam Hocevar <sam@zoy.org>
4 *                All Rights Reserved
5 *
6 *  $Id$
7 *
8 *  This program is free software. It comes without any warranty, to
9 *  the extent permitted by applicable law. You can redistribute it
10 *  and/or modify it under the terms of the Do What The Fuck You Want
11 *  To Public License, Version 2, as published by Sam Hocevar. See
12 *  http://sam.zoy.org/wtfpl/COPYING for more details.
13 */
14
15
16using System;
17
18using Pipi;
19
20class Test
21{
22    public static void Main()
23    {
24        Console.WriteLine("libpipi {0} .NET test", Libpipi.getVersion());
25        Console.WriteLine("(c) 2008 Sam Hocevar <sam@zoy.org>");
26
27        Pipi.Picture p = new Pipi.Picture("random:640x480");
28        Console.WriteLine("Test picture size: {0}x{1}", p.Width, p.Height);
29    }
30}
31
Note: See TracBrowser for help on using the repository browser.