Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

test.cs 848 B

12345678910111213141516171819202122232425262728293031
  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. using System;
  15. using Pipi;
  16. class Test
  17. {
  18. public static void Main()
  19. {
  20. Console.WriteLine("libpipi {0} .NET test", Libpipi.getVersion());
  21. Console.WriteLine("(c) 2008 Sam Hocevar <sam@zoy.org>");
  22. Pipi.Picture p = new Pipi.Picture("random:640x480");
  23. Console.WriteLine("Test picture size: {0}x{1}", p.Width, p.Height);
  24. }
  25. }