Search Results for

    Show / Hide Table of Contents

    Class ElementImage

    注意酷Q Air是发送不了图片的

    Inheritance
    System.Object
    Element
    ElementFile
    ElementImage
    ElementFlashImage
    Inherited Members
    ElementFile.file_url
    ElementFile.is_fixed
    ElementFile.Save(String)
    ElementFile.Fix()
    Element.type
    Element.data
    Element.isSingle
    Element.ToString()
    Element.GetElement(String, Dictionary<String, String>)
    Namespace: cqhttp.Cyan.Messages.CQElements
    Assembly: cqhttp.Cyan.dll
    Syntax
    public class ElementImage : ElementFile

    Constructors

    | Improve this Doc View Source

    ElementImage(Dictionary<String, String>)

    通过属性字典构造图片Element

    Declaration
    public ElementImage(Dictionary<string, string> data)
    Parameters
    Type Name Description
    Dictionary<System.String, System.String> data

    Element属性

    | Improve this Doc View Source

    ElementImage(Byte[], Boolean)

    通过含图片的byte array构造图片Element

    Declaration
    public ElementImage(byte[] imageBytes, bool useCache = true)
    Parameters
    Type Name Description
    System.Byte[] imageBytes
    System.Boolean useCache
    | Improve this Doc View Source

    ElementImage(String, Boolean)

    通过网络资源构造图片Element

    Declaration
    public ElementImage(string url, bool useCache = true)
    Parameters
    Type Name Description
    System.String url

    资源位置

    System.Boolean useCache

    是否缓存于酷Q客户端

    Methods

    | Improve this Doc View Source

    Equals(Object)

    不同的图片URL可能指向相同的图片

    Declaration
    public override bool Equals(object other)
    Parameters
    Type Name Description
    System.Object other
    Returns
    Type Description
    System.Boolean
    Overrides
    Element.Equals(Object)
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    Element.GetHashCode()
    • Improve this Doc
    • View Source
    ☀
    ☾