[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 quite often useful to define a
content area area as well because otherwise it can cause some adverse
effects.

Basically have at least one black pixel on the top and left sides and
you should have an ok, stretching 9-patch png

On Feb 26, 7:13 am, OldSkoolMark  wrote:
> I've created some button .pngs in CS4 Fireworks and have loaded them
> into draw9patch. The shadow effects I'm using to create a 3D-ish look-
> and-feel cause the draw9patch tool to mark all the stretchable areas
> as 'bad'. What artifacts are created when 'bad patches' are stretched?
> How do I steer clear of graphics that won't stretch properly as 9-
> patch pngs?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


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

2010-02-26 Thread OldSkoolMark


On Feb 26, 1:27 pm, Gaunt Face  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 message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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
borders, and letting you edit them.

You can do it yourself in a graphics editor, but the Draw 9-patch tool
gives you better feedback and is easier.

On Feb 26, 8:21 pm, OldSkoolMark  wrote:
> On Feb 26, 1:27 pm, Gaunt Face  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 message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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 say that if you're OK with 
how your 9-patches look in your app, don't worry about it.

String

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[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 aren't 
the same in the direction of stretch - they'd get all blocky. Maybe I'll 
approach my particular task a different way.

It foxed me that my central two columsn and rows looked identical - I infer 
they're subtly different. If I only choose one row or one column, the 'bad' 
markers vanish: a row or column can hardly fail to match itself!

Cheers,

Tim

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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

2011-04-07 Thread weasel


This is what the 'show bad patches' mode looks like: 



And when it's off:


But it's really not clear what it's talking about.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en