顺便问问 10/3=4 这个要怎么实现
也就是除的话有小数就取+1的整数 ===
ceiling
也就是除的话有小数就取+1的整数 ===
ceiling
解决方案 »
- 网站可以ping通,但不能访问
- 如何从SQL server 2005中,读取图片,并输出在页面上,我在数据库中存储图片的字段的类型是varbinary?
- vs2005 中只有web.config不会变色,全是黑色的???
- 关于asp.net中的控件
- 我想知道asp.net可以跟 asp 一样分页吗
- 为什么代码在前台
- 很急,很急,我已经重装了N次系统了
- gridview 怎么将两个字段的数据合成一起插入另外一张表
- 问个怎么调用.ashx里面的输出内容,以前调用过,一时忘记了!!
- 谁知道AJAX的下载地址啊??(在线)
- 我的网址怎么会变
- 用zedGraph控件画曲线图,请问如何显示曲线点上的数据?急求!谢谢了!
Response.Write(i.ToString());
无法从“System.Drawing.Graphics”转换为“System.Drawing.Image”
真高兴啊我换新工作了
谢谢你
还有恭喜成为MVP
Graphics g1 = Graphics.FromImage(b1);
g1.Clear(Color.Red);
g1.Dispose(); Bitmap b2 = new Bitmap(500, 500);
Graphics g2 = Graphics.FromImage(b2);
g2.Clear(Color.Blue);
g2.Dispose(); Bitmap bAll = new Bitmap(500, 1000);
Graphics gAll = Graphics.FromImage(bAll);
gAll.DrawImage(b1, 0, 0);
gAll.DrawImage(b2, 0, b1.Width);
gAll.Dispose(); ///显示测试
System.IO.MemoryStream ms = new System.IO.MemoryStream();
bAll.Save(ms, System.Drawing.Imaging.ImageFormat.Gif);
Response.ClearContent();
Response.ContentType = "image/Gif";
Response.BinaryWrite(ms.ToArray());
///把10转换一下类型 比如 10.0
int Result = Math.Ceiling((decimal)10 / 3);