XDImage

type:
extension
author:
Shilo White
description:
An extension for Sparrow that allows 9-slice scaling of images and buttons.
lastupdate:
2013-08-28
compatible:
v2.0
tag:
9-slice, slice, scale, scaling, image, button
homepage:
https://gist.github.com/6364072
download:
https://gist.github.com/gists/6364072/download
company:
XIDA Design & Technik

Usage

#import "XDImage.h"
 
XDImage *image = [XDImage imageWithContentsOfFile:@"button.png"];
image.scale9Grid = [SPRectangle rectangleCenteredToBounds:image.bounds width:100.0f height:10.0f];
 
[self addChild:image];

Demo Project

Changelog

  • 2013/08/28: First public version

Source Code

  users/shilo/extensions/xdimage.txt · Last modified: 2013/08/28 11:34 by shilo
 
Powered by DokuWiki