• 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
Dumb tired newbie question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dumb tired newbie question


  • Subject: Dumb tired newbie question
  • From: Nicholas Shanks <email@hidden>
  • Date: Thu, 7 Feb 2002 03:41:29 +0000

Perhaps it's just because I've been up for too long, but I can't get the method to NSImage to get an image to scale down to a rect I want.

[image drawInRect:imageFrame fromRect:NSMakeRect( 0, 0, imageWidth, imageHeight ) operation:NSCompositeSourceOver fraction:1.0];

imageWidth = imageWidth = (something bigger than 16) and imageFrame = 16x16 at 0,0

is this the wrong mthod, or the right method with the wrong arguments.
I'm sure my question will be answered somewhere in the docs but I'm too tired to go hunting.

Nicholas Shanks
--

http://nickshanks.com/
_______________________________________________
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: Re: dock animation available ?
  • Next by Date: Re: NSAffineTransform
  • Previous by thread: Poof Animation
  • Next by thread: Dock Menus
  • Index(es):
    • Date
    • Thread