karthik
karthik

Reputation: 219

How to remove black line in 9 patch image?

When i generate the 9 patch image at the time the image having a black line:

enter image description here

How to remove that black pixels?

Upvotes: 3

Views: 4940

Answers (1)

Bhavesh Jethani
Bhavesh Jethani

Reputation: 3875

You have uploaded that is not *.9.png image its .png image

In 9 patch its not black line its patch...

9 patch mechanism

Horizontal line shows the contain area and Vertical line shows the image will stretch from that area.

whenever you use 9 patch images, that line not appear in device..

In Your Image.

1) left Vertical Line indicates stretch Area. image will vertically(Height) stretch from that area

2) Top Horizontal Line indicates stretch Area. image will Horizonatally(width) stretch from that area.

3) Bottom Horizontal Line indicates text contain Area(width).

4) Right Vertical Line indicates text contain Area(text can occupy that height only).

Upvotes: 13

Related Questions