That's funny! I ran into the same problem too yesterday!
I just discovered that the function boundingbox() will give you the required information. You have to run it before you run trim().
Image finalimage("out.png");
Geometry *g1 = new Geometry();
*g1 = finalimage.boundingBox();
finalimage.trim ...
Search found 1 match
- 2012-06-22T01:17:36-07:00
- Forum: Users
- Topic: determining offset in magick++ crop operation
- Replies: 2
- Views: 5891