原创 縮略圖

 public Bitmap ToThumbnailImages(string sourceImagePath, string thumbnailImagePath, int thumbnailImageWidth)        {  

原创 pdf水印

轉自  http://blog.csdn.net/longren629/archive/2007/11/09/1875436.aspx     iTextSharp學習 收藏   簡介和參考文章:  iTextSharp是一款開源的PDF

原创 網頁內容抓取

using System;using System.Collections.Generic;using System.Text;using System.Net;using System.IO; namespace thief{class

原创 加密解密 保存設置

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using

原创 [轉]使用C#進行圖像處理的幾種方法

[轉]使用C#進行圖像處理的幾種方法 本文轉自: 本文討論了C#圖像處理中Bitmap類、BitmapData類和unsafe代碼的使用以及字節對齊問題。 Bitmap類 命名空間:System.Drawing 封裝 GDI+ 位圖,此

原创 distinct datatable數據

DataTable d = dataSetName.dataTableName.DefaultView.ToTable(true, new string[] { "ColumnName" });

原创 sqlserver導出數據的insert語句

USE [WAP4DB]GO/****** Object:  StoredProcedure [dbo].[OutputData]    Script Date: 01/06/2011 15:14:23 ******/SET ANSI_N

原创 壓縮文件夾文件到一個壓縮包裏面

     public static bool ZipDirectory(string inputDirectpath, string outZipFilePath)        {            try           

原创 文件的長路徑如何轉換爲短路徑(dos格式) 轉自csdn

 using   System.Runtime.InteropServices;         定義:     [DllImport("kernel32.dll",   CharSet   =   Cha

原创 從圖像轉換到byte[]數組的幾種方法

// 性能最高,其數組和像素一一對應public static void test1(Image img)        {            Bitmap bmp = new Bitmap(img);            Bitm

原创 增加水印,在文檔之下。

 private void button6_Click(object sender, EventArgs e)        {             DrawWatermark(null, "TEST", new Font("宋體",

原创 ftp上傳,命令方式。限制:不同能透過代理

   #region FTPClient 上傳文件類    public class FTPClient    {        #region 異步調用部分         //上傳文件委託        public delegate

原创 圖片旋轉及得到傾斜度(未加驗證是否正確)

            int lHeight = bmpobj.Height;            int lWidth = bmpobj.Width;            int iRow, iCol;            in

原创 listview項增加processbar並操作 只供學習 mark、

ListViewItem lvi = new ListViewItem();            lvi.SubItems.Add("jsldkjaf");            lv_MainTask.Items.Add(lvi);

原创 自動更新 異步調用 顯示進度條 只做記錄

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using