• 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: patching images together
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: patching images together


  • Subject: Re: patching images together
  • From: j o a r <email@hidden>
  • Date: Fri, 4 Feb 2005 20:37:17 +0100


On 2005-02-04, at 20.32, David Piasecki wrote:

I have a set of adjacent PNG or TIFF images that I want to patch together into a single image. Is there a way to do this in Cocoa, perhaps by positioning each image as data at a specified (x,y) position in the final result image?

It's easy. Create a new image, the size of the combined area of all images, lock focus on the new image, and then use "-compositeToPoint:operation:" on each one of the source images in turn to copy their data into the new image.


j o a r

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

  • Follow-Ups:
    • Re: patching images together
      • From: "David Piasecki" <email@hidden>
References: 
 >patching images together (From: "David Piasecki" <email@hidden>)

  • Prev by Date: Re: patching images together
  • Next by Date: Re: patching images together
  • Previous by thread: Re: patching images together
  • Next by thread: Re: patching images together
  • Index(es):
    • Date
    • Thread