[android-developers] Re: what are 9-patch bad patches?

2011-04-07 Thread String
I assume you've looked at the docs: *Show bad patches*: Adds a red border around patch areas that may produce artifacts in the graphic when stretched. Visual coherence of your stretched image will be maintained if you eliminate all bad patches Still not *too* clear what that means, but I'd

[android-developers] Re: what are 9-patch bad patches?

2011-04-07 Thread weasel
Aha, no - I didn't find any links to docs about the program in the Android docs, just a reference to the program in the part talking about 9-patch images. It makes sense to warn about artifacting - I presume it refers to how stretched images will become blocky if the stretched columns and rows

[android-developers] Re: what are 9-patch bad patches?

2011-04-07 Thread weasel
This is what the 'show bad patches' mode looks like: https://lh5.googleusercontent.com/_23u4H0QVvog/TZ4WKD8-XRI/Ax8/4k7DcLa3gVA/patches-bad.jpg And when it's off: https://lh4.googleusercontent.com/_23u4H0QVvog/TZ4W2OxZijI/AyA/DbjLnI1jYOs/patches-bad-hidden.jpg But it's really

[android-developers] Re: what are 9-patch bad patches?

2010-02-26 Thread Gaunt Face
Is there any possibility of seeing an example image? I don't think the graphics actually affect the 9-patch png from working, the only thing that matters if that you stretch in both directions, I don't think you can stretch in the x axis and not the y. I have also found from experience it is

[android-developers] Re: what are 9-patch bad patches?

2010-02-26 Thread OldSkoolMark
On Feb 26, 1:27 pm, Gaunt Face matt.t.ga...@googlemail.com wrote: Basically have at least one black pixel on the top and left sides and you should have an ok, stretching 9-patch png Why does this matter? Suppose the edge is a shadow or other gradient. What then? -- You received this

[android-developers] Re: what are 9-patch bad patches?

2010-02-26 Thread Bob Kerns
Then it's not a 9-patch! A 9-patch has one extra pixel around the edge, that is used to describe where the graphic within that 1-pixel border is stretched. Please see the documentation for the Draw 9-patch tool, which can take an existing graphic and convert it for you, by adding those 1-pixel