I understand "stretching" of image, but there is some other changing of image. There is simple way to see this: Just create 1-pixel thin round- rectangle line. And using "draw9patch" set top stretchable area: 1 middle pixel, and left stretchable area: 1 middle pixel. If use this picture as background of any view - you can see that result will have a bit other color, and angles will be a bit changed.
And the question is how to forbid to do with picture anything except stretching. On 16 ноя, 23:11, Dianne Hackborn <[email protected]> wrote: > Are you saying there is not the lines from the original images? That is > correct, this is a nine-patch image (with extension .9.png), so the borders > are interpreted as the nine-patch data and stripped from the rendered image. > > 2010/11/16 Евгений Григорьев <[email protected]> > > > > > > > I found interesting thing here: > >http://developer.android.com/guide/topics/graphics/2d-graphics.html > > > There is a sample of button image, used like nine-patch drawable. > > > And in a sample of using this picture you can see that it is not only > > stretched, but angles are mutating in some strange way. > > Also there is not one-pixel black line around button on stretched > > image. > > > Does anyone no how to forbid this changing? > > > On 15 ноя, 19:57, Евгений Григорьев <[email protected]> > > wrote: > > > I mark only 2 center pixels as stretchable area. The problem is not > > > stretching, but small changes in color of line and little mutations of > > > corners. > > > > I thought it can be resolved by putting original picture to "raw" > > > resource folder, but in this case it is not stretched correctly. > > > > On 15 ÎÏÑ, 15:00, Kumar Bibek <[email protected]> wrote: > > > > > You should stretch the areas that are uniform. That is, do not stretch > > the > > > > corners. That should fix this problem > > > > > 2010/11/15 å×ÇÅÎÉÊ çÒÉÇÏÒØÅ× <[email protected]> > > > > > > Hi all. > > > > > > I have a problem with using nine patch images. I have an original > > > > > picture: > > >http://picasaweb.google.com/Grigoriev.Evgeny.V/Android?authkey=Gv1sRg... > > > > > > Than i use nine-patch tool from sdk to set 2-pixel stretchable area > > in > > > > > the center of horizontal line. Then i set this image like background > > > > > of linear layout. And as a result i get such image: > > >http://picasaweb.google.com/Grigoriev.Evgeny.V/Android?authkey=Gv1sRg... > > > > > > So my image not only stretches, but also changes in some strange way. > > > > > Even corner areas, that should be the same changes. > > > > > > Has anyone the same problem? > > > > > > -- > > > > > You received this message because you are subscribed to the Google > > > > > Groups "Android Developers" group. > > > > > To post to this group, send email to > > [email protected] > > > > > To unsubscribe from this group, send email to > > > > > [email protected]<android-developers%2bunsubs[email protected]> > > <android-developers%2bunsubs[email protected]> > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/android-developers?hl=en > > > > > -- > > > > Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected]<android-developers%2bunsubs[email protected]> > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en > > -- > Dianne Hackborn > Android framework engineer > [email protected] > > Note: please don't send private questions to me, as I don't have time to > provide private support, and so won't reply to such e-mails. All such > questions should be posted on public forums, where I and others can see and > answer them. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

