[英]C# Change Control.Top From 16bit to 32bit Int (WinForms)
[英]How to convert bitmap image with 32bit to 16bit color quality in C#
我們有兩個imagew,第一個圖像是在WindowsXP中捕獲的,用於32位色彩質量,同樣在WindowsXP中捕獲16bit色彩質量。兩個圖像都保存為位圖圖像。但在比較兩者時,我們觀察到哈希值不同。 在這里,我們計划實現C#代碼,將32位色彩質量圖像轉換為16位色彩質量圖像。
有沒有人研究過這種位圖圖像比較問題,這方面的任何輸入都會受到贊賞。
提前謝謝了。
嘗試使用下一個
var bmp = new Bitmap(yourImage.Width, yourImage.Height, System.Drawing.Imaging.PixelFormat.Format16bppRgb555);
using (var gr = Graphics.FromImage(bmp))
gr.DrawImage(yourImage, new Rectangle(0, 0, yourImage.Width, yourImage.Height));
bmp
- 將具有16位質量
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.