diff --git a/doric-demo/src/ImageProcessorDemo.tsx b/doric-demo/src/ImageProcessorDemo.tsx index 07b6bc5e..5cd35763 100644 --- a/doric-demo/src/ImageProcessorDemo.tsx +++ b/doric-demo/src/ImageProcessorDemo.tsx @@ -11,6 +11,8 @@ import { Gravity, createRef, loge, + ViewComponent, + HLayout, } from "doric"; import { binarization, @@ -22,6 +24,18 @@ import { } from "./imageUtils"; import { colors } from "./utils"; +@ViewComponent +export class Label extends Text { + constructor() { + super(); + this.width = 100; + this.height = 40; + this.backgroundColor = colors[1]; + this.textColor = Color.WHITE; + this.textSize = 20; + } +} + @Entry export class ImageProcessorDemo extends Panel { build(root: Group): void { @@ -33,7 +47,6 @@ export class ImageProcessorDemo extends Panel { - {( - [ - [ - "黑白化", - async () => { + + + + + 简单 + + + + + + + 模糊 + + + + + + + 二值化 + + + + + ; }