Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nine-patch images for web development [closed]

Tags:

html

android

css

I'm wondering if there is something like 9-patch in Android, but for web development?

Disclosure: I have no idea about web development at all, but I was curious to know if it exists. And a simple web search with the term 9-patch didn't bring up any related results, so I figured it has either another term or it doesn't exist or is not used widely enough.

Anyone knows?

like image 408
znq Avatar asked Sep 07 '10 14:09

znq


2 Answers

Yes. It is used for border-image in CSS 3:

http://www.css3.info/preview/border-image/

http://www.w3.org/TR/css3-background/#border-images

like image 103
RoToRa Avatar answered Oct 04 '22 05:10

RoToRa


If you're still interested I created a Javascript file that uses canvas to create real nine patch image support for the web. The open source project can be found here:

https://github.com/chrislondon/9-Patch-Image-for-Websites

like image 22
Chris L. Avatar answered Oct 04 '22 07:10

Chris L.