摘要: 新建文档有多种参数组合,以一种常见设置为例: var width = 800; //宽度 var height = 800; //高度 var resolution = 72; //分辨率 var docName = "PS新建文档"; //文件名 var mode = NewDocumentMod 阅读全文
posted @ 2020-02-04 15:49 编码的奥秘 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 1、名字空间 using System.Runtime.InteropServices; 2、API函数申明 [DllImport("user32.dll", CharSet = CharSet.Auto, ExactSpelling = true)] public static extern In 阅读全文
posted @ 2020-02-04 14:18 编码的奥秘 阅读(571) 评论(0) 推荐(0) 编辑
摘要: public Form1() { InitializeComponent(); //桌面窗口区宽减自身宽,高减自身高 int x = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Size.Width - this.Size.Width; 阅读全文
posted @ 2020-02-04 13:54 编码的奥秘 阅读(305) 评论(0) 推荐(0) 编辑