Class ElementImage
注意酷Q Air是发送不了图片的
Inherited Members
Namespace: cqhttp.Cyan.Messages.CQElements
Assembly: cqhttp.Cyan.dll
Syntax
public class ElementImage : ElementFile
Constructors
| Improve this Doc View SourceElementImage(Dictionary<String, String>)
通过属性字典构造图片Element
Declaration
public ElementImage(Dictionary<string, string> data)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<System. |
data | Element属性 |
ElementImage(Byte[], Boolean)
通过含图片的byte array构造图片Element
Declaration
public ElementImage(byte[] imageBytes, bool useCache = true)
Parameters
Type | Name | Description |
---|---|---|
System. |
imageBytes | |
System. |
useCache |
ElementImage(String, Boolean)
通过网络资源构造图片Element
Declaration
public ElementImage(string url, bool useCache = true)
Parameters
Type | Name | Description |
---|---|---|
System. |
url | 资源位置 |
System. |
useCache | 是否缓存于酷Q客户端 |
Methods
| Improve this Doc View SourceEquals(Object)
不同的图片URL可能指向相同的图片
Declaration
public override bool Equals(object other)
Parameters
Type | Name | Description |
---|---|---|
System. |
other |
Returns
Type | Description |
---|---|
System. |
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System. |