1 using System; 2 using System.Collections.Generic; 3 using System.Web; 4 using System.Web.Services; 5 using System.Data; 6 using Topevery.EOffice.Log ...
如圖,左圖是效果,右圖是原理,右圖X軸代表圖像一個像素點的灰度,Y軸代表RGB三個顏色對應的偽彩色圖顏色。代碼如下: for (int y = 0; y < height; y++) { for (int x = 0; x < width; x++) { Color c = bmp.GetPixel ...