浏览代码

fix imagefilter_blur

/siyaoH-1.17-PlatformMessage
Shiyun Wen 4 年前
当前提交
faa460a3
共有 1 个文件被更改,包括 11 次插入1 次删除
  1. 12
      engine/src/lib/ui/painting/image_filter.cc

12
engine/src/lib/ui/painting/image_filter.cc


ImageFilter::~ImageFilter() = default;
UIWIDGETS_API(ImageFilter*)
ImageFilter_constructor() {
ImageFilter_constructor(){
const auto panel = ImageFilter::Create();
panel->AddRef();
return panel.get();

panel->Release();
}
UIWIDGETS_API(void)
ImageFilter_initPicture(Picture* picture) {
filter_ = SkPictureImageFilter::Make(picture->picture());
}
UIWIDGETS_API(void)
ImageFilter_initMatrix(const float* matrix4, int filterQuality) {
filter_ = SkImageFilter::MakeMatrixFilter(
ToSkMatrix(matrix4), static_cast<SkFilterQuality>(filterQuality),
nullptr);
}
void ImageFilter::initImage(CanvasImage* image) {

正在加载...
取消
保存