Thank you Kostya! I did find the file changed when I re-edit it using draw 9-patch tool. See the attachment: 1px.png is the original image created by GIMP. 1px.9.png is the image I re-edited 1px.png using draw 9-patch.
They are different in: (1) file size. (2) the data between IDAT and IEND which can be seen in hex-editor. As you said the tool add some custom chunk, so is this chunk part of the PNG standard? I used GIMP to pick the color for both of the images and found the RGB and alpha are the same for every pixels. Do you have some good idea about these issues? 2011/1/5 Kostya Vasilyev <[email protected]> > The format is standard PNG. Build tools add a custom chunk containing patch > data. > > Perhaps your other tool left some values close to zero, but not zero, in > the alpha channel for the border pixels? You could also dump PNG data chunks > before and after Draw9Patch and see what's changed. > > -- > Kostya Vasilyev -- http://kmansoft.wordpress.com > 04.01.2011 22:03 пользователь "szj" <[email protected]> написал: > > > There is a problem in our current project. > > We used some tool other than Android SDK Draw 9-patch to draw the > > 9.png images. > > But found the result images will cause build errors saying that the > > frame pixels are not transparent which is indeed transparent in the > > tool we used. > > > > Then we re-edited these error images using Draw 9-patch and these > > errors gone. > > So, I'm very confused about if the 9-patch (NinePatch) is standard png > > format. > > > > Any one know about this? > > > > -- > > 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%[email protected]> > > For more options, visit this group at > > http://groups.google.com/group/android-developers?hl=en > > -- > 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%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- 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
<<attachment: 1px.9.png>>
<<attachment: 1px.png>>

