• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to scale NSBitmapImage?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to scale NSBitmapImage?


  • Subject: How to scale NSBitmapImage?
  • From: Jay Koutavas <email@hidden>
  • Date: Fri, 12 Dec 2003 14:19:10 -0500

How does one scale an NSBitmapImageRep? From what I'm seeing, doing -setSize: on its NSImage won't cause the underlining image rep to scale, just the rendering of the image. When I setSize on the image and I later access the MSBitmapImageRep it's containing, the NSBitmapImageRep is still at its original unscaled size.

Should I make a new NSBitmapImageRep at the scaled size and copy to it? Or better yet, can I directly transform my existing NSBitImageRep with the appropriate magic? In either case, could someone post me a code snippit, or point me to the right location in documentation?

Thanks,

/Jay

--
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Jay Koutavas mailto:email@hidden
Heynow Software http://www.heynow.com
Windham, New Hampshire, USA
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: textShouldEndEditing Issues!
  • Next by Date: NSConnection registerName limitations?
  • Previous by thread: Re: textShouldEndEditing Issues!
  • Next by thread: NSConnection registerName limitations?
  • Index(es):
    • Date
    • Thread