• 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
Re: +[NSColor colorWithPatternImage:] - set pattern origin?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: +[NSColor colorWithPatternImage:] - set pattern origin?


  • Subject: Re: +[NSColor colorWithPatternImage:] - set pattern origin?
  • From: glenn andreas <email@hidden>
  • Date: Tue, 16 Aug 2005 13:45:21 -0500


On Aug 16, 2005, at 12:48 PM, Jim Correia wrote:

The documentation says:

+ (NSColor *)colorWithPatternImage:(NSImage *)image

Creates and returns an NSColor that uses the pattern in image. The returned NSColor is autoreleased. The image is tiled starting at the bottom of the window. The image is not scaled.

Is there some way to influence the pattern origin (so that it starts at the origin of my view, for example)? Or must I tile the image myself?

-NSGraphicsContext setPatternPhase:


Glenn Andreas email@hidden <http://www.gandreas.com/> wicked fun! quadrium | build, mutate, evolve | images, textures, backgrounds, art

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >+[NSColor colorWithPatternImage:] - set pattern origin? (From: Jim Correia <email@hidden>)

  • Prev by Date: Re: Outline view / Drag-n-drop example, and issues
  • Next by Date: Re: Resizing an image and representing it in JPEG form
  • Previous by thread: +[NSColor colorWithPatternImage:] - set pattern origin?
  • Next by thread: Problem with NSComboBox's enabled binding
  • Index(es):
    • Date
    • Thread