Just one pixel!

Just had a major breakthrough with a stupid API on iPhone. You see, if you set an image on a UIButton, and then rotate said button, you end up with a nasty jagged edge along the top only! This had been bothering me ever since Stack 1.0, and I'd never thought to investigate. The actual problem is the clipping rect used by the system is sharp and aliased. However, if you move your images down just a single pixel in Y, you fix it! An albeit verbose way of setting an image to a button, I used: As a result, I now have smooth icons =) NB: Jailbreak developers: For the record, do *not* use the [UIImage drawAtPoint:] API, it leaves garbage at the side of the image. Use the official drawAtPoint:blendMode:alpha: and you'll be alright. This is officially my favourite new feature in Stack v2.1.

14 comments:

fireonfive said...

Are you still planning on allowing users to adjust the position of the Stack so it works well with more (or less, I guess) than four icons?
And is v2.1 still on schedule for release this week?

Steven Troughton-Smith said...

Yup to both =]

fireonfive said...

Awesome, I can't wait for the update now!
I actually hoped everyday for about a month after Stacks came out that I'd be greeted with an update that allowed me to use it with five icons.
It's definitely going to be worth the wait though.

jessy said...

Thank god, this was and is my favorite app and i thought it was forgotten, what with all the other projects you had. Glad to see it back
Will it let you still use one icon instead of three?
that was the only thing i didnt like about stacks 2.0

SBL clipping path services said...

Superb! I find your blog is very useful. Keep posting. Thanks for the sharing.

Darran said...

Will Stack ever be available in the apps store or will you have to jailbreak your phone to get it?

jessy said...

Never will be on the appstore,
unless apple becomes a open platform which i doubt it

Shawin said...

Smooth icons for stacks! Yay!

epqr said...

Yes! Finally an update for stacks. Can't wait :D

Anonymous said...

any word on release?

Anonymous said...

I think it was delayed :( probably wont hear about in these couple of days

fireonfive said...

I hope the release is soon; I have Stack installed but deleted the .dylib (so I'd see the update still but wouldn't have the older version, since Cydia's Changes section only seems to show new packages) and I already miss it. :(

Anonymous said...

So its delayed again ... Oh well the longer the wait, the better it gets when it comes out. Take you time...

Jim Cobb said...

hey stephen, what's up? you said on the 8th, that there'd be a release that week and we've heard nothing since. can you let us know where you're at?

Post a Comment