我正在使用rgraph图表中的Vertical progress bar。
我要做的是以10个数字的倍数调整比例 因此,如果我的数字是6,那么比例应为0,10,20,30 ... 60
我该怎么做?还有其他选择吗?
代码
byte[] logo = BmpToBytes_MemStream(Properties.Resources.gcs_logo);
emailMessage.Attachments.AddFileAttachment("logo.jpg", logo);
emailMessage.Attachments[emailMessage.Attachments.Count - 1].IsInline = true;
emailMessage.Attachments[emailMessage.Attachments.Count - 1].ContentId = "gcs_logo.jpg";
private static byte[] BmpToBytes_MemStream(Bitmap bmp)
{
byte[] bmpBytes = null;
using (MemoryStream ms = new MemoryStream())
{
// Save to memory using the Jpeg format
bmp.Save(ms, ImageFormat.Jpeg);
// read to end
bmpBytes = ms.GetBuffer();
bmp.Dispose();
}
return bmpBytes;
}
答案 0 :(得分:1)