Skip to content
Discussion options

You must be logged in to vote

Got it I need to get the Page.X and Page.Y and overrule that in the BoundingBox, this way I get exactly what I want.

Image.Trim(new Percentage(0));
_boundingBox = Image.BoundingBox;
_boundingBox.X = Image.Page.X;
_boundingBox.Y = Image.Page.Y;
OriginalImage.Crop(_boundingBox);
OriginalImage.Write(new FileInfo("d:\\test.jpg"));

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Sicos1977
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants