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.
Unfortunately, activation email could not send to your email. Please try again.

How to calculate ScaleTransform for an image for pdf creation

Thread ID:

Created:

Updated:

Platform:

Replies:

111235 Sep 13,2013 04:38 AM Sep 24,2013 11:51 PM Windows Forms 1
loading
Tags: PDF
Tanmaya Mohanty
Asked On September 13, 2013 04:38 AM

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

Praveenkumar H [Syncfusion]
Replied On September 24, 2013 11:51 PM

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

 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;