Mobile app version of vmapp.org
Login or Join
Kevin459

: How do I save 9patch image in photoshop? I am using a image, and I would like to draw 9 patch for that image. I am not sure in which format i have to save this. Any advice would be much

@Kevin459

Posted in: #AdobePhotoshop #Images

I am using a image, and I would like to draw 9 patch for that image. I am not sure in which format i have to save this. Any advice would be much appreciated.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Kevin459

1 Comments

Sorted by latest first Latest Oldest Best

 

@Voss6371140

Does this question in stackoverflow help?

Content:

Here are the basic rules for creating a 9-patch:


The outer 1px margin can contain only 100% black (RGB 0, 0, 0) or fully transparent.
The black pixels for the top margin and left margin define the stretch points, and must be either a solid line, a single point, or two separate points. If two points are defined, it will stretch equally between the two.
The black pixels for the bottom margin and right margin define the content area. These pixels must be one contiguous line.


When saving, be sure to append the .9.png extension.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme