OpenFileDialog Filter属性设置所有图片格式
OpenFileDialog Filter属性设置所有图片格式
代码如下:
扫一扫加作者微信
代码如下:
C# Code:
OpenFileDialog _dialog = new OpenFileDialog();
_dialog.Filter =
"All Image Files|*.bmp;*.ico;*.gif;*.jpeg;*.jpg;*.png;*.tif;*.tiff|"
"Windows Bitmap(*.bmp)|*.bmp|"
"Windows Icon(*.ico)|*.ico|"
"Graphics Interchange Format (*.gif)|(*.gif)|"
"JPEG File Interchange Format (*.jpg)|*.jpg;*.jpeg|"
"Portable Network Graphics (*.png)|*.png|"
"Tag Image File Format (*.tif)|*.tif;*.tiff";
if (DialogResult.OK == _dialog.ShowDialog(this))
{
}
OpenFileDialog _dialog = new OpenFileDialog();
_dialog.Filter =
"All Image Files|*.bmp;*.ico;*.gif;*.jpeg;*.jpg;*.png;*.tif;*.tiff|"
"Windows Bitmap(*.bmp)|*.bmp|"
"Windows Icon(*.ico)|*.ico|"
"Graphics Interchange Format (*.gif)|(*.gif)|"
"JPEG File Interchange Format (*.jpg)|*.jpg;*.jpeg|"
"Portable Network Graphics (*.png)|*.png|"
"Tag Image File Format (*.tif)|*.tif;*.tiff";
if (DialogResult.OK == _dialog.ShowDialog(this))
{
}
扫一扫加作者微信
版权声明:本文为开发框架文库发布内容,转载请附上原文出处连接
NewDoc C/S框架网