title: How to fix blurry images on NSButton in cocoa application?
body: <p>I have a couple of NSButtons which act like player controls (play, pause etc.)
  When I assign image to them, that image looks blurry.</p>
  
  <pre><code>  let playPauseButton: NSButton = {
      let btn = NSButton(frame: .zero)
      let image = NSImage(named: "pauseIcon")
      btn.imageScaling = NSImageScaling.scaleNone
      btn.image = image
      btn.setAccessibilityLabel("Pause")
      btn.isBordered = false
      return btn
  }()
  </code></pre>
  
  <p>The image can be viewed on:
  <a href="https://www.dropbox.com/s/38tvh49ikc2m4x7/Play.pdf?dl=0" rel="nofollow noreferrer">https://www.dropbox.com/s/38tvh49ikc2m4x7/Play.pdf?dl=0</a></p>
  
  <p>This image is .pdf, but I tried .png with 1x,2x and 3x, and it still looked blurry.</p>
  
  <p>I also checked this question:
  <a href="https://stackoverflow.com/questions/11200992/images-in-nsbutton-and-nsimageview-blurred">Images in NSButton and NSImageView Blurred</a></p>
  
  <p>But it did not help me either.</p>