Differences

This shows you the differences between two versions of the page.

Link to this comparison view

users:shilo:extensions:xdimage [2013/08/28 11:34]
shilo created
users:shilo:extensions:xdimage [2013/08/28 11:34] (current)
shilo [Usage]
Line 1: Line 1:
 +====== XDImage ======
 +---- dataentry extension ----
 +type          : extension
 +author_mail ​  : shilo86@gmail.com Shilo White
 +description ​  : An extension for Sparrow that allows 9-slice scaling of images and buttons.
 +lastupdate_dt : 2013-08-28
 +compatible ​   : v2.0
 +depends ​      : ​
 +tags          : 9-slice, slice, scale, scaling, image, button
 +homepage_url ​ : https://​gist.github.com/​6364072
 +download_url ​ : https://​gist.github.com/​gists/​6364072/​download
 +company ​      : XIDA Design & Technik
 +----
  
 +===== Usage =====
 +
 +<code objc>
 +#import "​XDImage.h"​
 +
 +XDImage *image = [XDImage imageWithContentsOfFile:​@"​button.png"​];​
 +image.scale9Grid = [SPRectangle rectangleCenteredToBounds:​image.bounds width:​100.0f height:​10.0f];​
 +
 +[self addChild:​image];​
 +</​code>​
 +
 +===== Demo Project =====
 +[[http://​shilocity.net/​sparrow/​extensions/​xdimagedemo/​XDImageDemo.zip|{{http://​shilocity.net/​sparrow/​extensions/​xdimagedemo/​screenshots/​Screen%20Shot%202013-08-28%20at%202.21.42%20AM.png}}]]
 +  * Project: [[http://​shilocity.net/​sparrow/​extensions/​xdimagedemo/​XDImageDemo.zip|XDImageDemo (Universal)]]
 +  * Screenshots:​ [[http://​shilocity.net/​sparrow/​extensions/​xdimagedemo/​screenshots/​|Screenshot Archive]]
 +
 +
 +===== Changelog =====
 +
 +  * //​2013/​08/​28//:​ First public version
 +
 +===== Source Code =====
 +
 +%gist(6364072)%
  users/shilo/extensions/xdimage.txt · Last modified: 2013/08/28 11:34 by shilo
 
Powered by DokuWiki