I’m developing a number of components for <9-slice...
# compose
o
I’m developing a number of components for 9-slices scaling of images, like a button, background, etc. Asking community for a good name for this 🙂 Like how would you name a class that holds ImageBitmap and information about left, top, right and bottom sizes to render it?
b
"Skale"? 😀
K 3
m
NineSliceImage
k
9Patch? That's what Android ones are called 🙂
o
9Patch is not a proper identifier 🙂 But thanks for the hint, I didn’t know it is supported in Android. But it’s not in Compose, right?
k
No it's not in compose... It's in the older Android system. Yep..NinePatch 🙂
It's useful for stuff like chat bubbles with tails
d
There's a proper name for this in the game Dev world. I think it's sprite.
Ah no, maybe it's texture atlas.
b
Unity calls them 9-slicing sprites https://docs.unity3d.com/Manual/9SliceSprites.html
o
o
Interesting that there are more complex scenarios, which have more than 9 slices… E.g. in addition to border part, they extract center part. I’m not sure how it works yet, but looks useful, too
a
CornerImage or FrameImage maybe
m
AFAIK Android's 9 Patches can have for more than 9 slices