private void testfrm_Shown(object sender, EventArgs e)
{
unsafe
{
int* fib = stackalloc int[320*300+1];
int* p = fib;
for (int i = 0; i < 320*300+1; i++)
{
*p = 0x00ff0000;
p++;
}
Bitmap small = new Bitmap(320,300,1280,System.Drawing.Imaging.PixelFormat.Format32bppRgb,(IntPtr)fib);
pictureBox1.Image = small;
}
}
代码如上,知道的请告诉小弟下
{
unsafe
{
int* fib = stackalloc int[320*300+1];
int* p = fib;
for (int i = 0; i < 320*300+1; i++)
{
*p = 0x00ff0000;
p++;
}
Bitmap small = new Bitmap(320,300,1280,System.Drawing.Imaging.PixelFormat.Format32bppRgb,(IntPtr)fib);
pictureBox1.Image = small;
}
}
代码如上,知道的请告诉小弟下
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货