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

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
Google DeepMind News
Google DeepMind News
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
P
Proofpoint News Feed
Recent Announcements
Recent Announcements
MongoDB | Blog
MongoDB | Blog
U
Unit 42
云风的 BLOG
云风的 BLOG
Recorded Future
Recorded Future
G
Google Developers Blog
I
InfoQ
Blog — PlanetScale
Blog — PlanetScale
A
About on SuperTechFans
Jina AI
Jina AI
量子位
宝玉的分享
宝玉的分享
The Cloudflare Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 聂微东
Last Week in AI
Last Week in AI
WordPress大学
WordPress大学
美团技术团队
The Hacker News
The Hacker News
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
D
Darknet – Hacking Tools, Hacker News & Cyber Security
T
Tailwind CSS Blog
博客园 - 司徒正美
博客园 - 叶小钗
Hugging Face - Blog
Hugging Face - Blog
P
Palo Alto Networks Blog
博客园_首页
阮一峰的网络日志
阮一峰的网络日志
博客园 - 【当耐特】
Spread Privacy
Spread Privacy
The GitHub Blog
The GitHub Blog
Y
Y Combinator Blog
Vercel News
Vercel News
Martin Fowler
Martin Fowler
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Forbes - Security
Forbes - Security
Attack and Defense Labs
Attack and Defense Labs
Google DeepMind News
Google DeepMind News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Azure Blog
Microsoft Azure Blog
P
Privacy International News Feed
G
GRAHAM CLULEY
The Last Watchdog
The Last Watchdog
C
Cyber Attacks, Cyber Crime and Cyber Security
AI
AI
V2EX - 技术
V2EX - 技术

博客园 - 爱你的人

从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;