浏览代码

Merge pull request #236 from UnityTech/fix_color_filter

Fix color filter.
/main
GitHub 5 年前
当前提交
b9b17469
共有 2 个文件被更改,包括 5 次插入0 次删除
  1. 2
      Runtime/painting/decoration_image.cs
  2. 3
      Runtime/rendering/image.cs

2
Runtime/painting/decoration_image.cs


Paint paint = new Paint();
if (colorFilter != null) {
paint.colorFilter = colorFilter;
paint.color = colorFilter.color;
paint.blendMode = colorFilter.blendMode;
}
if (sourceSize != destinationSize) {

3
Runtime/rendering/image.cs


this._alignment = alignment ?? Alignment.center;
this._invertColors = invertColors;
this._filterMode = filterMode;
this._updateColorFilter();
}
Image _image;

}
this._color = value;
this._updateColorFilter();
this.markNeedsPaint();
}
}

}
this._colorBlendMode = value;
this._updateColorFilter();
this.markNeedsPaint();
}
}

正在加载...
取消
保存