• 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: Making an NSImage form a NSImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making an NSImage form a NSImage


  • Subject: Re: Making an NSImage form a NSImage
  • From: Nathan Day <email@hidden>
  • Date: Fri, 25 Jan 2002 00:26:40 +1030

You can create new images by locking focus on then and draw into them just as you draw into views, including other images. So you could create a new image 1.5x the width of the original and draw youre image twice at (0,0) and (width+1,0)

On Thursday, January 24, 2002, at 09:40 AM, Tommaso Pecorella wrote:

Hi, probably it's a very stupid question, however... I'll do it.

I have a NSImage and I want to buid another NSImage equal to the first one EXCEPT that the final one must be wider and in the "added" piece it has to repeat the first part of the original NSImage.

Think about doubling the original one to the right, or

+-----------------+----+
| | |
| orig. image | AA |
| | |
+-----------------+----+

where AA is the leftmost slice of orig. image.

Well, the question is: how can I do such a thing ?


References: 
 >Making an NSImage form a NSImage (From: Tommaso Pecorella <email@hidden>)

  • Prev by Date: Re: how to determine when [window windowNumber] is available
  • Next by Date: Cocoa basic data types?
  • Previous by thread: Making an NSImage form a NSImage
  • Next by thread: Perl
  • Index(es):
    • Date
    • Thread