Re: Making an NSImage form a NSImage
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 ?