Determining layer offset geometry in Magick++
Posted: 2010-12-13T01:46:08-07:00
Good evening,
I have looked through the examples and scrounged over the IM docs for Magick++ and haven't found a concrete way of determining a particular layers x,y offsets in relation to the background (ie. if background is 1000x1000, layer 1 is 250x250 at +50+20). Command line "identify" is usually able to extract geometry from the image including these variables, but I can't seem to find anything in the IM docs that points me in the right direction besides perhaps using the Magick::Pixels::getPixels() method, but I am not sure how these coordinates might be in relation to the image as a whole, or in relation to only the previous layer.
Thoughts?
I have looked through the examples and scrounged over the IM docs for Magick++ and haven't found a concrete way of determining a particular layers x,y offsets in relation to the background (ie. if background is 1000x1000, layer 1 is 250x250 at +50+20). Command line "identify" is usually able to extract geometry from the image including these variables, but I can't seem to find anything in the IM docs that points me in the right direction besides perhaps using the Magick::Pixels::getPixels() method, but I am not sure how these coordinates might be in relation to the image as a whole, or in relation to only the previous layer.
Thoughts?