Reputation: 93
I have *.png image. Using this image , I am creating 9 patch image. In *.png image , there are 45 degree lines.When I Stretch this image, 9 patch Image showing horizontal lines . I want 45 degree lines in 9 patch image. Can u please suggest the way for creating right 9 patch image ?
Upvotes: 0
Views: 215
Reputation: 3381
The 9 patch will not allow you to draw continuous 45 degree lines. You can define an area or range for a stretch region, but as the region stretches it will change the angle of the line from 45 for that area.
You are likely getting continuous horizontal or vertical lines because only one pixel or very narrow area is able to stretch.
Upvotes: 2
Reputation: 9872
9-patch is not really the right tool for diagonal lines. Maybe you should consider using a tiled background instead?
Upvotes: 2