[英]C# Bitmap "following" Transparent Form
我有一個透明的表格使用
this.BackColor = Color.Wheat;
this.TransparencyKey = Color.Wheat;
this.TopMost = true;
我不完全確定您的意思是否如下:
int initial_x = 400, initial_y = 400;
Color color = Colors.Transparent;
if (this.Top >= 0 && this.Top < initial_x && this.Left >= 0 && this.Left < initial_y)
color = Bitmap.GetPixel(initial_x - this.Top, initial_y - this.Left);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.