We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to calculate ScaleTransform for an image for pdf creation

How to calculate ScaleTransform for an image, while setting ScaleTransform for a pdf page?
pdfPage.Graphics.ScaleTransform(.80f, .80f)
Thanks,
Tanmaya

1 Reply

PH Praveenkumar H Syncfusion Team September 25, 2013 03:51 AM UTC

Hi Tanmaya,

Thanks for using Syncfusion products,

 We are able to set the image bounds manually, it automatically scales the image to its dimension internally.

The sample code snippet is given below.

page.Graphics.DrawImage(img,0,0,100,100);

The sample project is attached for your reference.

 AddingImage.zip

Please let us know if you need any further assistance.

With Regards,

Praveen

 


Loader.
Up arrow icon