I want to be able to resize an image to the dimension of 159x159 points, using iTextSharp 4.2.0, but the resulting image need to have exactly the dimensions specified.
I've tried this:
Image image = Image.GetInstance(imagePath);
image.ScaleAbsolute(159f, 159f);
But the image is not a square. It keeps the aspect ratio.
Example: I have this image:
And the result image should look loke this:
Thanks.