我有个delphi语句是这样的htonl(GetPixel(Bitmap.Canvas.Handle, x, y))
C# 怎么实现呀
Bitmap bt = new Bitmap(FileUpload1.PostedFile.InputStream);
for (int i = 0; i < bt.Width ; i++)
{
for (int j = 0; j < bt .Height ; j++)
{
Color c = bt.GetPixel(i, j);
Pixels[i * bt.Height + j] = htonl(c );
}
}
}
[DllImport("wsock32.dll ")]
public static extern uint htonl(Color ss);
我这样写不对,怎么办
C# 怎么实现呀
Bitmap bt = new Bitmap(FileUpload1.PostedFile.InputStream);
for (int i = 0; i < bt.Width ; i++)
{
for (int j = 0; j < bt .Height ; j++)
{
Color c = bt.GetPixel(i, j);
Pixels[i * bt.Height + j] = htonl(c );
}
}
}
[DllImport("wsock32.dll ")]
public static extern uint htonl(Color ss);
我这样写不对,怎么办
解决方案 »
- 效率达人进...
- asp.net中用Flash_player播放监控录像(.264格式)
- 连接数据库使用 TCP Client 方式 还是 SSPI 集成认证方式?
- 访问虚拟目录外的文件夹
- 关于IIS发布锐浪报表的问题,请大侠求救
- 搞了半年asp.net(c#),感觉自己水平还很差,想借高手们的代码还看看。
- 如何防止网页被Mozilla Firefox等浏览器打开?
- 在web窗体中如何同时存在多个form?
- 我想用vs2003建一个asp.net应用程序出现了下面的问题,帮帮忙!!!!
- 关于数据库加密的问题,请高手看过来。
- 继续询问jquery和asp.net后台交互问题
- CheckBox 循環問題
你现Color c = bt.GetPixel(i, j);
htonl(c );这是颜色,参数不对