Image size for texture rounded buttons?

What is the recommended image size for texture rounded buttons? I pretty much always have a hard time making my images look good inside a texture rounded button. With scaling set to proportionally up/down, the texture rounded buttons always downscale the image too small. With "None" set for image scaling, the image draws too close to the edge of the button.


I end up just fixing this, by subclassing NSButtonCell and adjusting the frame to draw the image manually. Kind of a pain though.

Did you look at segmented images : NSDrawNinePartImage() or NSDrawThreePartImage()

I'm not trying to draw a 9 part image.


I always have a hard time constructing images that look good in a texture rounded button, similiar to the buttons you see in NSToolbar in Finder, or Safari or whatever.


The height of a texture rounded button is 25 points but NSButton seems to inset the image a bit in this mode. Not sure if I missed the API to determine that inset amount. Built in template images work for the most part but there aren't that many of them. It seems that some of the templates may have a have a little transparent margin that makes them scale nicer inside the texture rounded button. I can't get the button to look the way I want in IB when playing with image alignment and the scale mode. I end up just subclassing NSButtonCell to fix it.


Not sure if I'm making my image the *wrong way* for this. Making an all black PNG and setting it as a template image comes out of Interface Builder fuzzy. Not sure if the lines are too thick on these PNGs. They look nice on iOS though. I am on a non-retina Mac though.

OK, sorry that didn't do it.


On my side I have been fighting for weeks, and finally gave up, to build "manually" patterns to fill like a color ; I can't avoid some jigsaw effect when the pattern repeats itself.


It was so easy at the time of ResEdit !!!!!

Well for me it seems like around an 18 points for the image looks okay, perhaps a bit taller if the image has transparent margins. Kind of hard to make images so small look good if you aren't on retina.

Image size for texture rounded buttons?
 
 
Q