浏览代码

Merge branch 'master' into layout

/main
Yuncong Zhang 5 年前
当前提交
388331c1
共有 6 个文件被更改,包括 11 次插入11 次删除
  1. 2
      Runtime/painting/decoration_image.cs
  2. 2
      Runtime/rendering/image.cs
  3. 2
      Runtime/ui/painting/canvas_impl.cs
  4. 4
      Runtime/ui/painting/painting.cs
  5. 2
      Runtime/widgets/basic.cs
  6. 10
      Runtime/widgets/image.cs

2
Runtime/painting/decoration_image.cs


Rect centerSlice = null,
ImageRepeat repeat = ImageRepeat.noRepeat,
bool invertColors = false,
FilterMode filterMode = FilterMode.Point
FilterMode filterMode = FilterMode.Bilinear
) {
D.assert(canvas != null);
D.assert(rect != null);

2
Runtime/rendering/image.cs


ImageRepeat repeat = ImageRepeat.noRepeat,
Rect centerSlice = null,
bool invertColors = false,
FilterMode filterMode = FilterMode.Point
FilterMode filterMode = FilterMode.Bilinear
) {
this._image = image;
this._width = width;

2
Runtime/ui/painting/canvas_impl.cs


public int rtID;
public int width;
public int height;
public FilterMode filterMode = FilterMode.Point;
public FilterMode filterMode = FilterMode.Bilinear;
public bool noMSAA = false;
public Rect layerBounds;
public Paint layerPaint;

4
Runtime/ui/painting/painting.cs


return new _BlurImageFilter(sigmaX, sigmaY);
}
public static ImageFilter matrix(Matrix3 transform, FilterMode filterMode = FilterMode.Point) {
public static ImageFilter matrix(Matrix3 transform, FilterMode filterMode = FilterMode.Bilinear) {
return new _MatrixImageFilter(transform, filterMode);
}
}

public float strokeMiterLimit = 4.0f;
public FilterMode filterMode = FilterMode.Point;
public FilterMode filterMode = FilterMode.Bilinear;
public ColorFilter colorFilter = null;

2
Runtime/widgets/basic.cs


ImageRepeat repeat = ImageRepeat.noRepeat,
Rect centerSlice = null,
bool invertColors = false,
FilterMode filterMode = FilterMode.Point
FilterMode filterMode = FilterMode.Bilinear
) : base(key) {
this.image = image;
this.width = width;

10
Runtime/widgets/image.cs


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(

正在加载...
取消
保存