使用Notepad++開發C#,一個複雜點的csscript腳本:
//css_dir ..\..\lib;
//css_ref Geb.Image.dll;
//css_ref Geb.Image.ShapeAnalysis.dll;
//css_ref Geb.Utils.dll;
//css_ref Geb.Utils.WinForm.dll;
//css_co /unsafe;
using System;
using Geb.Image;
unsafe class Program
{
public static void Main()
{
ImageArgb32 img = new ImageArgb32(300,200);
img.Fill(Argb32.RED);
img.ShowDialog();
}
}
// css_dir 設定搜尋庫目錄的路徑;
// css_ref 引用dll;
// css_co 設定編譯參數;
版權所有,歡迎轉載