码迷,mamicode.com
首页 > 其他好文 > 详细

cxImage控件使用

时间:2016-03-11 22:05:40      阅读:127      评论:0      收藏:0      [点我收藏+]

标签:

属性:

  Picture:载入要显示的图片

  Properties->Caption在没有内容的时候显示在图片框中间的文字

技术分享

  Properties->PopupMenuLayout->MenuItems可选择需要显示在图片上的右键菜单命令

技术分享

//载入图片
procedure
TForm1.Button2Click(Sender: TObject); begin if OpenDialog1.Execute then begin cxImage1.Picture.LoadFromFile(OpenDialog1.FileName); end; end;
//保存图片
procedure TForm1.Button3Click(Sender: TObject); begin if SavePictureDialog1.Execute then begin cxImage1.Picture.SaveToFile(SavePictureDialog1.FileName); end; end;

 

cxImage控件使用

标签:

原文地址:http://www.cnblogs.com/win32pro/p/5267221.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!