objective c - NSImageView size vs NSImage size -
does size of image used nsimageview
need same dimensions image view?
as example, when have icon image dimensions 64px 64px create sure nsimageview
displays image 64px 64px. however, if have nsimageview
48px 48px create sure have image 48px 48px image view. both of these images same icon, 1 larger other. instead of having 2 separate images in app (which can increment app size if there lot of images), wondering if have 1 image (the 64x64 image) , utilize larger image smaller sized nsimageviews
.
no, don't need same size. can alter nsimageview's imagescaling
, imagealignment
ensure nsimage resizes nicely fill nsimageview.
see apple's documentation farther details.
objective-c cocoa nsimage nsimageview
No comments:
Post a Comment