Class Image
Inheritance
Image
Inherited Members
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 | |
Nullable<Single> | width | |
Nullable<Single> | height | |
Color | color | |
BlendMode | colorBlendMode | |
Nullable<BoxFit> | fit | |
Alignment | alignment | |
ImageRepeat | repeat | |
Rect | centerSlice | |
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 |
---|---|
Nullable<BoxFit> |
gaplessPlayback
Declaration
public readonly bool gaplessPlayback
Field Value
Type | Description |
---|---|
Boolean |
height
Declaration
public readonly float? height
Field Value
Type | Description |
---|---|
Nullable<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 |
---|---|
Nullable<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 |
---|---|---|
String | name | |
Key | key | |
AssetBundle | bundle | |
Nullable<Single> | scale | |
Nullable<Single> | width | |
Nullable<Single> | height | |
Color | color | |
BlendMode | colorBlendMode | |
Nullable<BoxFit> | fit | |
Alignment | alignment | |
ImageRepeat | repeat | |
Rect | centerSlice | |
Boolean | gaplessPlayback | |
FilterMode | filterMode |
Returns
Type | Description |
---|---|
Image |
createState()
Declaration
public override State createState()
Returns
Type | Description |
---|---|
State |
Overrides
debugFillProperties(DiagnosticPropertiesBuilder)
Declaration
public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
Parameters
Type | Name | Description |
---|---|---|
DiagnosticPropertiesBuilder | properties |
Overrides
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 |
---|---|---|
String | file | |
Key | key | |
Single | scale | |
Nullable<Single> | width | |
Nullable<Single> | height | |
Color | color | |
BlendMode | colorBlendMode | |
Nullable<BoxFit> | fit | |
Alignment | alignment | |
ImageRepeat | repeat | |
Rect | centerSlice | |
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 |
---|---|---|
Byte[] | bytes | |
Key | key | |
Single | scale | |
Nullable<Single> | width | |
Nullable<Single> | height | |
Color | color | |
BlendMode | colorBlendMode | |
Nullable<BoxFit> | fit | |
Alignment | alignment | |
ImageRepeat | repeat | |
Rect | centerSlice | |
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 |
---|---|---|
String | src | |
Key | key | |
Single | scale | |
Nullable<Single> | width | |
Nullable<Single> | height | |
Color | color | |
BlendMode | colorBlendMode | |
Nullable<BoxFit> | fit | |
Alignment | alignment | |
ImageRepeat | repeat | |
Rect | centerSlice | |
Boolean | gaplessPlayback | |
FilterMode | filterMode | |
IDictionary<String, String> | headers |
Returns
Type | Description |
---|---|
Image |