You can also set up a shape so that it scales up and down from its initial dimensions in a predictable way, replicating the edge-inset resizing functionality offered by Cocoa classes like NSImage and UIImage. This is very handy when you want, say, the middle of a button to stretch horizontally, while keeping the sides a fixed size. The use of parametrized vector images makes it easy to code effects that would be hard to achieve using bitmaps or traditional vector files. ![]() PaintCode’s export functionality takes whatever you have created and converts it into code that you can use in your apps. There are a few options available: you can choose which operating system to export to, as well as your pick of either Objective-C or Microsoft’s C#. ![]() Having been burnt by automated code generation tools before, I wanted to check the quality of PaintCode’s output firsthand, so I wrote a You can also choose whether to support Apple’s ARC memory management technology, target specific versions of iOS, and even determine whether your code uses a normal or flipped coordinate system. Very simple app that animates several shapes, morphing one into the next every two seconds. This very basic test isn’t going to win any design award, but it’s a good example of something that would be very hard to do using bitmaps, both because of the animations and because of the requirement that the images scale without becoming pixellated. ![]() With PaintCode, it took me around 15 minutes from beginning to end. Taking a peek at the source if you are so inclined, the quality of the code that the app outputs is quite good individual lines are indented well and generously commented where appropriate. Each parametrized aspect of your document is rendered so that you can easily manipulate the values, making it very easy to iterate through different versions of your code without having to continuously make changes manually.
0 Comments
Leave a Reply. |