• 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
GraphicsImportGetNaturalBounds offset
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GraphicsImportGetNaturalBounds offset


  • Subject: GraphicsImportGetNaturalBounds offset
  • From: Lorenzo <email@hidden>
  • Date: Thu, 10 Jan 2008 17:21:56 +0100

Hi,
I import a Photoshop file ."psd" containing several layers.
Let's say that the whole image is large 800 x 600.
I have been able to walk through the several layers with
    GraphicsImportSetImageIndex(importer, layerIndex);
and to extract and save each layer to a tif file.
Since a layer contains only a small circle 200 x 200 (and and empty
transparent zone around), I get a layer image large 200 x 200, but I cannot
get its origin xy offset from the composite image origin.
So I cannot put the layer image on its original position when I try to
rejoin the layers. Did I explain well?

How can I get this offset? GraphicsImportGetNaturalBounds and
GraphicsImportGetDestRect return always zero as left and top values.

Is any Cocoa API which can return this value? Any QT API?



Best Regards
--
Lorenzo
email: email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Setting spell-checker underlines
  • Next by Date: Re: Using NSValueTransformer for encryption
  • Previous by thread: Re: Setting spell-checker underlines
  • Next by thread: NSDocument FSPathReplaceObject failure
  • Index(es):
    • Date
    • Thread