当前位置:首页 » 图片资讯 » 如何保存ms晶胞图片
扩展阅读
美女健身跳河视频 2023-08-31 22:08:21
西方贵族美女照片真人 2023-08-31 22:08:15

如何保存ms晶胞图片

发布时间: 2022-09-05 10:06:47

① VS2010 中如何用C# WinForm中保存MSChart图片到本地EXCEL

MSChart.SaveImage()
保存的是图片文件,你要用
Excel
硬打开当然打不开。
这跟
MSChart
没啥关系。你的需求其实是“C#

Excel
中插入图片”,只不过被插入的图片是从
MSChart
保存过来的而已。
搜索的方向的不对,当然得不到想要的结果。
网络上相关代码一大把,我就不做搬运工了。

② vb中,如何把MSChart中生成的图,进行图片保存,如何实现

Private Declare Function GetDC Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long

Private Sub Command1_Click()
'mschart如何保存成图片,及打印图片的方法.
'原理是:通过API函数Bitblt把mschart图 绘画 在picture控件中,来实现保存及打印.
'代码:

Dim MyDc As Long
Picture1.BorderStyle = 0
MyDc = GetDC(MSChart1.hwnd) '取得MSChart1的句柄DC
Picture1.AutoRedraw = True
Picture1.Width = MSChart1.Width
Picture1.Height = MSChart1.Height

BitBlt Picture1.hDC, 0, 0, Picture1.ScaleWidth / Screen.TwipsPerPixelX, Picture1.ScaleHeight / Screen.TwipsPerPixelY, MyDc, 0, 0, vbSrcCopy

Picture1.AutoRedraw = False '此句可不写
SavePicture Picture1.Image, "d:\1.jpg" '保存图片,在此处不能用picture1.picture,你懂的..

③ 怎么将mschart中的图片导入excel中

MsChart自身就支持保存为图片,有了图片你要放到Exce还是Word什么的里面都不是问题 请使用 Chart.SaveImage 方法 将图表另存为图片,然后你可以把它用在任何地方

④ 急救!MS截图图片在哪个文件

呵呵,魔兽截图啊,在游戏中按PRINTSCREEN,然后ALT+TAB切换出来,打开WINDOWS自带的画图程序,按CTRL+V键粘贴,就可以把截的图保存了.
用这个方法截图,你可以自己设定截图的保存位置。即在保存图片时,选择另存为。。。(你想要保存图片的地方即可)

⑤ MS怎么建晶体模型Materials Studio

"File"-"new"-"3D atom Document"

"build"-"crystals"-"build crystal"

选择空间群, 以NaCl为例, 选225(FM-3M)

输入晶胞参数(Lattice Parameters)输入NaCl a=5.62779 "Apply"建好晶胞

"build"-"add atoms"

输入原子(元素右边...可打开周期表)和分数坐标, 由于输入了空间群, 等效原子只输1个即可

Na 0.5,0.5,0.5

Cl 0, 0,0

"File"-"Export"可存成各种格式文件.

⑥ GC-MS样品怎样保存

GC-MS是气质联用(气相色谱-质谱联用)的一种测定有机化合物的技术。
样品的保存与对色谱样品的要求一致。
取决于样品是否稳定,是否容易被氧化,是否容易水解等。
如果存在任何不稳定的因素,样品要在惰性气体条件下,保存在冰箱内。

⑦ 如何在sql server中存储图片

1、首先可以存储图片链接,设置图片链接字段,如下图所示。

⑧ MSSQL 2000 如何储存图片路径

看来你RP有问题,所以没人回答

用varchar,你想保存什么就保存什么

⑨ 如何像数据库中保存图片

一般图像是不保存在数据库的.而是先将图片放在工程下的某个文件夹中,将图片所在的工程文件路径存在数据库中,当程序加载图片的时候,从数据库中读取图片的路径,然后根据路径在工程的文件夹中读取图片文件

⑩ 如何在mssql中二进制储存图片

1.将图片以二进制存入数据库
//保存图片到数据库
protected void Button1_Click(object sender, EventArgs e)
{
//图片路径
string strPath = "~/photo/03.JPG";
string strPhotoPath = Server.MapPath(strPath);
//读取图片
FileStream fs = new System.IO.FileStream(strPhotoPath, FileMode.Open, FileAccess.Read);
BinaryReader br = new BinaryReader(fs);
byte[] photo = br.ReadBytes((int)fs.Length);
br.Close();
fs.Close();
//存入
SqlConnection myConn = new SqlConnection("Data Source=127.0.0.1;Initial Catalog=TestDB;User ID=sa;Password=sa");
string strComm = " INSERT INTO personPhoto(personName, personPhotoPath, personPhoto) ";
strComm += " VALUES('wangwu', '" + strPath + "', @photoBinary )";
SqlCommand myComm = new SqlCommand(strComm, myConn);
myComm.Parameters.Add("@photoBinary", SqlDbType.Binary,photo.Length);
myComm.Parameters["@photoBinary"].Value = photo;
myConn.Open();
myComm.ExecuteNonQuery();
myConn.Close();
}
2.读取二进制图片在页面显示
//读取图片
SqlConnection myConn = new SqlConnection("Data Source=127.0.0.1;Initial Catalog=TestDB;User ID=sa;Password=sa");
string strComm = " SELECT personPhoto FROM personPhoto WHERE personName='wangwu' ";
SqlCommand myComm = new SqlCommand(strComm, myConn);
myConn.Open();
SqlDataReader dr = myComm.ExecuteReader();
while (dr.Read())
{
byte[] photo = (byte[])dr["personPhoto"];
this.Response.BinaryWrite(photo);
}
dr.Close();
myConn.Close();

SqlConnection myConn = new SqlConnection("Data Source=127.0.0.1;Initial Catalog=TestDB;User ID=sa;Password=sa");
SqlDataAdapter myda = new SqlDataAdapter(" SELECT personPhoto FROM personPhoto WHERE personName='11' ", myConn);
DataSet myds = new DataSet();
myConn.Open();
myda.Fill(myds);
myConn.Close();
byte[] photo = (byte[])myds.Tables[0].Rows[0]["personPhoto"];
this.Response.BinaryWrite(photo);
3.设置Image控件显示从数据库中读出的二进制图片
---------------------------------------------
SqlConnection myConn = new SqlConnection("Data Source=192.168.0.1;Initial Catalog=TestDB;User ID=sa;Password=sa");
SqlDataAdapter myda = new SqlDataAdapter(" SELECT personPhoto FROM personPhoto WHERE personName='11' ", myConn);
DataSet myds = new DataSet();
myConn.Open();
myda.Fill(myds);
myConn.Close();
byte[] photo = (byte[])myds.Tables[0].Rows[0]["personPhoto"];
//图片路径
string strPath = "~/photo/wangwu.JPG";
string strPhotoPath = Server.MapPath(strPath);
//保存图片文件
BinaryWriter bw = new BinaryWriter(File.Open(strPhotoPath,FileMode.OpenOrCreate));
bw.Write(photo);
bw.Close();
3.显示图片
this.Image1.ImageUrl = strPath;
4.GridView中ImageField以URL方式显示图片
--------------------------
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False">
<Columns>
<asp:BoundField DataField="personName" HeaderText="姓名" />
<asp:ImageField DataImageUrlField="personPhotoPath"
HeaderText="图片">
</asp:ImageField>
</Columns>
</asp:GridView>
5.GridView显示读出的二进制图片
//样板列
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound">
<Columns>
<asp:BoundField DataField="personName" HeaderText="姓名" />
<asp:ImageField DataImageUrlField="personPhotoPath"
HeaderText="图片">
</asp:ImageField>
<asp:TemplateField HeaderText="图片">
<ItemTemplate>
<asp:Image ID="Image1" runat="server" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowIndex < 0)
return;
// System.ComponentModel.Container
string strPersonName = (string)DataBinder.Eval(e.Row.DataItem, "personName");
Image tmp_Image = (Image)e.Row.Cells[2].FindControl("Image1");
if (!System.Convert.IsDBNull(DataBinder.Eval(e.Row.DataItem, "personPhoto")))
{
//
byte[] photo = (byte[])DataBinder.Eval(e.Row.DataItem, "personPhoto");
//图片路径
string strPath = "~/photo/" + strPersonName.Trim() + ".JPG";
string strPhotoPath = Server.MapPath(strPath);
//保存图片文件
BinaryWriter bw = new BinaryWriter(File.Open(strPhotoPath, FileMode.OpenOrCreate));
bw.Write(photo);
bw.Close();
//显示图片
tmp_Image.ImageUrl = strPath;
}
}