ImageUpload Class
From HD.Common
| ImageUpload Class | Helper帮助文档 |
图片上传类
Inheritance Hierarchy
Namespace: HD.Common
Assembly: HD.Common (in HD.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class ImageUpload
Public Class ImageUpload
public ref class ImageUpload
type ImageUpload = class end
The ImageUpload type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| ImageUpload | Initializes a new instance of the ImageUpload class |
Methods
| Name | Description | |
|---|---|---|
| Equals | (Inherited from Object.) | |
| Finalize | (Inherited from Object.) | |
| GetHashCode | (Inherited from Object.) | |
| GetType | (Inherited from Object.) | |
| MemberwiseClone | (Inherited from Object.) | |
| ToString | (Inherited from Object.) | |
| Upload |
Properties
| Name | Description | |
|---|---|---|
| AddText |
设置文字水印内容
| |
| CopyIamgePath |
图片水印模式下的覆盖图片的实际地址
| |
| DrawString_x |
绘制文本的X坐标(左上角)
| |
| DrawString_y |
绘制文本的Y坐标(左上角)
| |
| DrawStyle |
设置加水印的方式
0:文字水印模式
1:图片水印模式
2:不加
| |
| Error |
Error返回值
1、没有上传的文件
2、类型不允许
3、大小超限
4、未知错误
0、上传成功。
| |
| FileSize |
文件大小
| |
| FileType |
所支持的上传类型用";"隔开
| |
| Font |
设置文字水印字体
| |
| FontSize |
设置文字水印字的大小
| |
| FormFile |
上传控件
| |
| Height |
获取上传图片的高度
| |
| InFileName |
非自动生成文件名设置。
| |
| IsCreateImg |
是否生成缩略图
| |
| IsDraw |
是否加水印
| |
| Iss |
是否有缩略图生成.
| |
| MaxSize |
最大单个上传文件
| |
| OutFileName |
输出文件名
| |
| OutThumbFileName |
输出的缩略图文件名
| |
| SavePath |
保存文件的实际路径
| |
| SaveType |
上传文件的类型,0代表自动生成文件名
| |
| sHeight |
设置缩略图的高度
| |
| sWidth |
设置缩略图的宽度
| |
| Width |
获取上传图片的宽度
|
See Also