[Android-development] Fwd: Nine-Patch Images

Eskil Abrahamsen Blomfeldt eskil.abrahamsen-blomfeldt at digia.com
Fri Mar 22 10:15:52 CET 2013

On 03/22/2013 08:39 AM, Filip Piechocki wrote:
> Thanks for your advice! I used this approach but it seems to not be 
> working well. The thing You didn't mention is that we need to cut out 
> the 1 pixel border from the original image. I did it by setting 
> BorderImage's anchors.margins to -1 and settings it's parent clip to 
> true. But it works only if the BorderImage's smooth is set to false, 
> otherwise the black lines from the "meta-data" 9 patch image border is 
> sometimes visible - it appears that it might spread on more then 1 
> pixel while scaling despite it shouldn't be scaled. But setting smooth 
> to false makes the bitmap look uglier.
> So my conclusion is that it should be done in BorderImage C++ 
> implemantation, or we need to write our own item implemented in C++.

Right, I don't have too much experience directly with this format, but 
making a new item in C++ should also be doable.

-- Eskil

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/android-development/attachments/20130322/6a8e3c34/attachment.html>

More information about the Android-development mailing list