|
|
|
|
|
|
ImageRepeat repeat = ImageRepeat.noRepeat, |
|
|
|
Rect centerSlice = null, |
|
|
|
bool gaplessPlayback = false, |
|
|
|
FilterMode filterMode = FilterMode.Point |
|
|
|
FilterMode filterMode = FilterMode.Bilinear |
|
|
|
) : base(key) { |
|
|
|
D.assert(image != null); |
|
|
|
this.image = image; |
|
|
|
|
|
|
ImageRepeat repeat = ImageRepeat.noRepeat, |
|
|
|
Rect centerSlice = null, |
|
|
|
bool gaplessPlayback = false, |
|
|
|
FilterMode filterMode = FilterMode.Point, |
|
|
|
FilterMode filterMode = FilterMode.Bilinear, |
|
|
|
IDictionary<string, string> headers = null |
|
|
|
) { |
|
|
|
var networkImage = new NetworkImage(src, scale, headers); |
|
|
|
|
|
|
ImageRepeat repeat = ImageRepeat.noRepeat, |
|
|
|
Rect centerSlice = null, |
|
|
|
bool gaplessPlayback = false, |
|
|
|
FilterMode filterMode = FilterMode.Point |
|
|
|
FilterMode filterMode = FilterMode.Bilinear |
|
|
|
) { |
|
|
|
var fileImage = new FileImage(file, scale); |
|
|
|
return new Image( |
|
|
|
|
|
|
ImageRepeat repeat = ImageRepeat.noRepeat, |
|
|
|
Rect centerSlice = null, |
|
|
|
bool gaplessPlayback = false, |
|
|
|
FilterMode filterMode = FilterMode.Point |
|
|
|
FilterMode filterMode = FilterMode.Bilinear |
|
|
|
) { |
|
|
|
var image = scale != null |
|
|
|
? (AssetBundleImageProvider) new ExactAssetImage(name, bundle: bundle, scale: scale.Value) |
|
|
|
|
|
|
ImageRepeat repeat = ImageRepeat.noRepeat, |
|
|
|
Rect centerSlice = null, |
|
|
|
bool gaplessPlayback = false, |
|
|
|
FilterMode filterMode = FilterMode.Point |
|
|
|
FilterMode filterMode = FilterMode.Bilinear |
|
|
|
) { |
|
|
|
var memoryImage = new MemoryImage(bytes, scale); |
|
|
|
return new Image( |
|
|
|