Hi,
This line in your code is the line that you move image:
Code: C#
content.GfxMatrix.Translate(x, y);
The coordinate origin is bottom left corner of the page. In your code you passed 0 to both argument so obviously it will stay at the bottom left corner. In order to center the image, you just need to calculate the correct X, Y value. The unit for X, Y is 1/72 inch. So you must do the following conversion:
1. Find out the inch size of your image;
2. Calculate the x, y position in inch;
3. Multiply x, y by 72. These are the final value you would need to pass to content.GfxMatrix.Translate.
Hope this helps.
Thanks!