Class Image | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class Image

    Inheritance
    System.Object
    Diagnosticable
    DiagnosticableTree
    CanonicalMixinDiagnosticableTree
    Widget
    StatefulWidget
    Image
    Inherited Members
    StatefulWidget.createElement()
    Widget.key
    Widget.toStringShort()
    Widget.canUpdate(Widget, Widget)
    CanonicalMixinDiagnosticableTree.pureWidget
    CanonicalMixinDiagnosticableTree.Equals(Object)
    CanonicalMixinDiagnosticableTree.GetHashCode()
    DiagnosticableTree.toStringShallow(String, DiagnosticLevel)
    DiagnosticableTree.toStringDeep(String, String, DiagnosticLevel)
    DiagnosticableTree.toDiagnosticsNode(String, DiagnosticsTreeStyle)
    DiagnosticableTree.debugDescribeChildren()
    Diagnosticable.ToString()
    Diagnosticable.toString(DiagnosticLevel)
    Namespace: Unity.UIWidgets.widgets
    Syntax
    public class Image : StatefulWidget

    Constructors

    Image(Key, ImageProvider, Nullable<Single>, Nullable<Single>, Color, BlendMode, Nullable<BoxFit>, Alignment, ImageRepeat, Rect, Boolean, FilterMode)

    Declaration
    public Image(Key key = null, ImageProvider image = null, float? width = default(float? ), float? height = default(float? ), Color color = null, BlendMode colorBlendMode = BlendMode.srcIn, BoxFit? fit = default(BoxFit? ), Alignment alignment = null, ImageRepeat repeat = ImageRepeat.noRepeat, Rect centerSlice = null, bool gaplessPlayback = false, FilterMode filterMode = null)
    Parameters
    Type Name Description
    Key key
    ImageProvider image
    System.Nullable<System.Single> width
    System.Nullable<System.Single> height
    Color color
    BlendMode colorBlendMode
    System.Nullable<BoxFit> fit
    Alignment alignment
    ImageRepeat repeat
    Rect centerSlice
    System.Boolean gaplessPlayback
    FilterMode filterMode

    Fields

    alignment

    Declaration
    public readonly Alignment alignment
    Field Value
    Type Description
    Alignment

    centerSlice

    Declaration
    public readonly Rect centerSlice
    Field Value
    Type Description
    Rect

    color

    Declaration
    public readonly Color color
    Field Value
    Type Description
    Color

    colorBlendMode

    Declaration
    public readonly BlendMode colorBlendMode
    Field Value
    Type Description
    BlendMode

    filterMode

    Declaration
    public readonly FilterMode filterMode
    Field Value
    Type Description
    FilterMode

    fit

    Declaration
    public readonly BoxFit? fit
    Field Value
    Type Description
    System.Nullable<BoxFit>

    gaplessPlayback

    Declaration
    public readonly bool gaplessPlayback
    Field Value
    Type Description
    System.Boolean

    height

    Declaration
    public readonly float? height
    Field Value
    Type Description
    System.Nullable<System.Single>

    image

    Declaration
    public readonly ImageProvider image
    Field Value
    Type Description
    ImageProvider

    repeat

    Declaration
    public readonly ImageRepeat repeat
    Field Value
    Type Description
    ImageRepeat

    width

    Declaration
    public readonly float? width
    Field Value
    Type Description
    System.Nullable<System.Single>

    Methods

    asset(String, Key, AssetBundle, Nullable<Single>, Nullable<Single>, Nullable<Single>, Color, BlendMode, Nullable<BoxFit>, Alignment, ImageRepeat, Rect, Boolean, FilterMode)

    Declaration
    public static Image asset(string name, Key key = null, AssetBundle bundle = null, float? scale = default(float? ), float? width = default(float? ), float? height = default(float? ), Color color = null, BlendMode colorBlendMode = BlendMode.srcIn, BoxFit? fit = default(BoxFit? ), Alignment alignment = null, ImageRepeat repeat = ImageRepeat.noRepeat, Rect centerSlice = null, bool gaplessPlayback = false, FilterMode filterMode = null)
    Parameters
    Type Name Description
    System.String name
    Key key
    AssetBundle bundle
    System.Nullable<System.Single> scale
    System.Nullable<System.Single> width
    System.Nullable<System.Single> height
    Color color
    BlendMode colorBlendMode
    System.Nullable<BoxFit> fit
    Alignment alignment
    ImageRepeat repeat
    Rect centerSlice
    System.Boolean gaplessPlayback
    FilterMode filterMode
    Returns
    Type Description
    Image

    createState()

    Declaration
    public override State createState()
    Returns
    Type Description
    State
    Overrides
    StatefulWidget.createState()

    debugFillProperties(DiagnosticPropertiesBuilder)

    Declaration
    public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
    Parameters
    Type Name Description
    DiagnosticPropertiesBuilder properties
    Overrides
    Widget.debugFillProperties(DiagnosticPropertiesBuilder)

    file(String, Key, Single, Nullable<Single>, Nullable<Single>, Color, BlendMode, Nullable<BoxFit>, Alignment, ImageRepeat, Rect, Boolean, FilterMode)

    Declaration
    public static Image file(string file, Key key = null, float scale = 1F, float? width = default(float? ), float? height = default(float? ), Color color = null, BlendMode colorBlendMode = BlendMode.srcIn, BoxFit? fit = default(BoxFit? ), Alignment alignment = null, ImageRepeat repeat = ImageRepeat.noRepeat, Rect centerSlice = null, bool gaplessPlayback = false, FilterMode filterMode = null)
    Parameters
    Type Name Description
    System.String file
    Key key
    System.Single scale
    System.Nullable<System.Single> width
    System.Nullable<System.Single> height
    Color color
    BlendMode colorBlendMode
    System.Nullable<BoxFit> fit
    Alignment alignment
    ImageRepeat repeat
    Rect centerSlice
    System.Boolean gaplessPlayback
    FilterMode filterMode
    Returns
    Type Description
    Image

    memory(Byte[], Key, Single, Nullable<Single>, Nullable<Single>, Color, BlendMode, Nullable<BoxFit>, Alignment, ImageRepeat, Rect, Boolean, FilterMode)

    Declaration
    public static Image memory(byte[] bytes, Key key = null, float scale = 1F, float? width = default(float? ), float? height = default(float? ), Color color = null, BlendMode colorBlendMode = BlendMode.srcIn, BoxFit? fit = default(BoxFit? ), Alignment alignment = null, ImageRepeat repeat = ImageRepeat.noRepeat, Rect centerSlice = null, bool gaplessPlayback = false, FilterMode filterMode = null)
    Parameters
    Type Name Description
    System.Byte[] bytes
    Key key
    System.Single scale
    System.Nullable<System.Single> width
    System.Nullable<System.Single> height
    Color color
    BlendMode colorBlendMode
    System.Nullable<BoxFit> fit
    Alignment alignment
    ImageRepeat repeat
    Rect centerSlice
    System.Boolean gaplessPlayback
    FilterMode filterMode
    Returns
    Type Description
    Image

    network(String, Key, Single, Nullable<Single>, Nullable<Single>, Color, BlendMode, Nullable<BoxFit>, Alignment, ImageRepeat, Rect, Boolean, FilterMode, IDictionary<String, String>)

    Declaration
    public static Image network(string src, Key key = null, float scale = 1F, float? width = default(float? ), float? height = default(float? ), Color color = null, BlendMode colorBlendMode = BlendMode.srcIn, BoxFit? fit = default(BoxFit? ), Alignment alignment = null, ImageRepeat repeat = ImageRepeat.noRepeat, Rect centerSlice = null, bool gaplessPlayback = false, FilterMode filterMode = null, IDictionary<string, string> headers = null)
    Parameters
    Type Name Description
    System.String src
    Key key
    System.Single scale
    System.Nullable<System.Single> width
    System.Nullable<System.Single> height
    Color color
    BlendMode colorBlendMode
    System.Nullable<BoxFit> fit
    Alignment alignment
    ImageRepeat repeat
    Rect centerSlice
    System.Boolean gaplessPlayback
    FilterMode filterMode
    System.Collections.Generic.IDictionary<System.String, System.String> headers
    Returns
    Type Description
    Image
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023