public void work()
{
System.IO.MemoryStream ms = new System.IO.MemoryStream();
image.Save(ms, System.Drawing.Imaging.ImageFormat.Bmp);
oldBitMap = new Bitmap(ms);
width = (int)(oldBitMap.Width * scale);
height = (int)(oldBitMap.Height * scale); newBitMap = new Bitmap(width, height); int i;
for (i = 0; i < height; i++)
{
thread[i] = new Thread(new ThreadStart(run));
}
for (i = 0; i < height; i++)
{
row = i;
thread[i].Start();
}
}上下文不存在:thread
{
System.IO.MemoryStream ms = new System.IO.MemoryStream();
image.Save(ms, System.Drawing.Imaging.ImageFormat.Bmp);
oldBitMap = new Bitmap(ms);
width = (int)(oldBitMap.Width * scale);
height = (int)(oldBitMap.Height * scale); newBitMap = new Bitmap(width, height); int i;
for (i = 0; i < height; i++)
{
thread[i] = new Thread(new ThreadStart(run));
}
for (i = 0; i < height; i++)
{
row = i;
thread[i].Start();
}
}上下文不存在:thread
放在int i; 前或后.