iOS: resize image support tile mode.

This commit is contained in:
吴尚昆
2022-03-16 19:25:55 +08:00
committed by osborn
parent 66692316de
commit 77617df848
12 changed files with 3180 additions and 1685 deletions

View File

@@ -179,6 +179,28 @@ class ImageDemo extends Panel {
bottom: 0
}
}),
label('tileInset'),
image({
imageBase64: img_base64[1],
height: 66,
width: 147,
scaleType: ScaleType.ScaleAspectFill,
layoutConfig: layoutConfig().just(),
}),
image({
imageBase64: img_base64[1],
height: 66 * 2,
width: 147 * 2,
backgroundColor: Color.CYAN,
scaleType: ScaleType.ScaleToFill,
layoutConfig: layoutConfig().just(),
tileInset: {
left: 0,
top: 0,
right: 83,
bottom: 0
}
}),
],
{
layoutConfig: layoutConfig().most().configHeight(LayoutSpec.FIT),