惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
AWS News Blog
AWS News Blog
V
Vulnerabilities – Threatpost
D
Darknet – Hacking Tools, Hacker News & Cyber Security
量子位
博客园 - 叶小钗
AI
AI
T
Tor Project blog
Forbes - Security
Forbes - Security
W
WeLiveSecurity
博客园_首页
爱范儿
爱范儿
J
Java Code Geeks
B
Blog
G
GRAHAM CLULEY
aimingoo的专栏
aimingoo的专栏
Cloudbric
Cloudbric
C
CXSECURITY Database RSS Feed - CXSecurity.com
TaoSecurity Blog
TaoSecurity Blog
L
LINUX DO - 热门话题
阮一峰的网络日志
阮一峰的网络日志
有赞技术团队
有赞技术团队
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Simon Willison's Weblog
Simon Willison's Weblog
云风的 BLOG
云风的 BLOG
Google DeepMind News
Google DeepMind News
H
Help Net Security
博客园 - 三生石上(FineUI控件)
C
Cisco Blogs
C
Cybersecurity and Infrastructure Security Agency CISA
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
P
Palo Alto Networks Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Recent Commits to openclaw:main
Recent Commits to openclaw:main
博客园 - 司徒正美
The Last Watchdog
The Last Watchdog
Blog — PlanetScale
Blog — PlanetScale
T
The Blog of Author Tim Ferriss
S
Secure Thoughts
Spread Privacy
Spread Privacy
F
Fortinet All Blogs
月光博客
月光博客
大猫的无限游戏
大猫的无限游戏
S
SegmentFault 最新的问题
H
Hackread – Cybersecurity News, Data Breaches, AI and More
A
About on SuperTechFans
Security Latest
Security Latest
Webroot Blog
Webroot Blog
Scott Helme
Scott Helme
Hugging Face - Blog
Hugging Face - Blog

博客园 - 爱你的人

从ArcEngine的模板开始 ArcIMS9.3新特性 ArcIMS9.2补丁安装 构建自己的ExtJs 失败 文字布局(TEXT STYLE)标记(TAGS) 表格(TABLE)标记(TAGS) 表单(FORM)标记(TAGS) 表格进阶(TABLE ADVANCED) 多窗口页面(Frames) 页面(PAGE)标记(TAGS) 字体(FONT)标记(TAGS) 图象(IMAGE)标记(TAGS) 会移动的文字(Marquee) 多媒体页面(Alternative Inline Elements) HTML 标记(Tag)的索引(Index) 多线程程序设计之一 16.ListBox and StatusStrip C# 函数方法大全+学习笔记
14.PictureBox
爱你的人 · 2008-02-24 · via 博客园 - 爱你的人

本视频主要介Picture Box控件。
1.SizeMode属性。
默认情况下,在 Normal 模式中,

Image

置于 PictureBox 的左上角,凡是因过大而不适合 PictureBox 的任何图像部分都将被剪裁掉。使用

StretchImage

值会使将图像拉伸,以便适合 PictureBox 的大小。 使用

AutoSize

值会使控件调整大小,以便总是适合图像的大小。使用

CenterImage

值会使图像居于工作区的中心。
2.BorderStyle属性
用switch语句完成。
Fixed3 3维边框
FixedSingle 单边框
None 无
3.initialize picturebox
代码:
pictureBox1.ErrorImage=Properties.Rresources.error;//在图像加载过程中发生错误或图像加载取消时要显示的

Image


pictureBox1.InitialImage=Properties.Resource.Loading;//在加载主图像时显示在图片框控件中的

Image


4.在资源中添加图片
在properties中的图片添加所需的图片。

5.背景图片

BackgroundImage属性
pictureBox1.BackgroundImage = Properties.Resources.backgroud;
6打开某网页上的图片
ImageLocation属性
pictureBox1.ImageLocation = http://www.zsu.edu.cn;//要在 PictureBox 中显示的图像的路径

7.装载本地图片
string fileLoadation=String.Empty;
 fileLoadation = System.Environment.GetFolderPath(Environment.SpecialFolder);
 fileLoadation += "\\logo.gif";
 pictureBox1.ImageLocation = fileLoadation;