Create NSBitmapImageRep with preferred size and drawNSImage onto that.
Need to construct NSBitmapImageRep specifically instead of using convenient initializers like NSBitmapImageRep(data:), NSBitmapImageRep(cgImage:) to avoid device dependant resolution issue.
Create
NSBitmapImageRep
with preferred size anddraw
NSImage
onto that. Need to constructNSBitmapImageRep
specifically instead of using convenient initializers likeNSBitmapImageRep(data:)
,NSBitmapImageRep(cgImage:)
to avoid device dependant resolution issue.Read more