GraphicsImportGetNaturalBounds offset

  • 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: <archidea...>
previous month january 2008 next month
MTWTFSS
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Go to today