Forum How do I...?

Cropping an Image with .NET

mickyjtwin
I am trying to crop an image using C#. The original image is a 300dpi image, and when using this, it is produced fine into the PDF. When I crop the image however, the image then comes through smaller than what has been set. I believe this is in regards to dpi settings, however I'm unsure how to fix this. I have tried many different cropping techniques, with all returning the same result. The dpi of the cropped image is being set from the original image as well. Wondering if there is anybody who might have successfully created this, and can provide some tips.
mikeday
On the Prince side of things you may be able to fix this using the prince-image-resolution property to specify the exact DPI that you want the image to have.