摘要: 相信大家在编程过程经常会遇上这类的问题 menuType = [Enum ]Enum].Parse(GetType(EnumType), 枚举值英文) 通过以上方法就可以取对应的枚举值 阅读全文
posted @ 2008-06-14 14:14 追风 阅读(1856) 评论(5) 推荐(0) 编辑
摘要: 方法一: using (Image image = Image.FromFile(@"e:\pic.jpg")) { using (TextureBrush brush = new TextureBrush(image)) { brush.TranslateTransform(x, y); g.FillRectangle(brush, x,... 阅读全文
posted @ 2008-06-14 10:51 追风 阅读(902) 评论(0) 推荐(0) 编辑
摘要: Public Function GetImageFromFile()Function GetImageFromFile(ByVal pstrFileName As String) As Boolean Dim strExt As String = "" '扩展文件名 Dim blnFlag As Boolean = False If ((pst... 阅读全文
posted @ 2008-06-14 09:27 追风 阅读(2854) 评论(0) 推荐(0) 编辑
摘要: '从 Byte() 中读取图像 Public Function GetImageFromStream()Function GetImageFromStream(ByVal ImageStream As Byte()) As Image Me.mobjImage = Nothing If (ImageStream Is Nothing) Then R... 阅读全文
posted @ 2008-06-14 09:26 追风 阅读(585) 评论(0) 推荐(0) 编辑
摘要: 在给网络打印机添加自定义纸张时,必须是 administrator 用户登录才行,不然则需要把程序放到 网络计算机上运行一次 'Imports System.IO 'Imports System.Xml 'Imports System.Drawing Imports System.ComponentModel 'Imports System.Drawing.Design Imports Syste... 阅读全文
posted @ 2008-06-14 09:23 追风 阅读(3655) 评论(3) 推荐(0) 编辑