; //this is to test that the function really restart after 3 seconds
document.getElementById('label').innerHTML = nb1 + " | " + @testClass.add(); ; // calling my c# method and print into a html label
我在c#中编辑了一个位图,对于每个像素,如果条件为真,则将其更改为某种颜色,否则将颜色设置为Color.Transparent (操作是通过getPixel/setPixel完成的)。我已经将图像导出为.png格式,但图像不透明。你知道我为什么要这样做,或者该怎么做吗?if(openFileDialog.FilterIndex==3) //3 is png--用于改变矩阵中某一位