To set the image, use setImage:
.
To set the frame style, use setImageFrameStyle:
with one of these arguments:
NSImageFrameNone
shows an invisible frame
NSImageFramePhoto
shows a thin black outline and a dropped shadow
NSImageFrameGrayBezel
shows a gray, concave bezel that makes the image look sunken
NSImageFrameGroove
shows a thin groove that looks etched around the image
NSImageFrameButton
shows a convex bezel that makes the image stand out in relief, like a button
To choose how the image is scaled within its frame, use setImageScaling:
with one of these arguments:
NSScaleProportionally
. If the image is too large, it shrinks to fit inside the frame. If the image is too small, it expands. The proportions of the image are preserved.
NSScaleToFit
. The image shrinks or expands, and its proportions distort, until it exactly fits the frame.
NSScaleNone
. The size and proportions of the image don’t change. If the frame is too small to display the whole image, the edges of the image are trimmed off.
To choose how the image is aligned within its frame, use setImageAlignment:
with one of these arguments:
Last updated: 2002-11-12