C#: How to save image with best size for any screen size and any resolution : <p>just wonder if anyone can give me concept to generate image with right size for any monitor size and resolution.</p>

<p>now i am in a situation where i have to generate several images from power point presentation each slides. i have to save each power point slides to each images. i will use the below code to do so.</p>

<pre><code>PowerPoint.Presentation pptPresentation = pptApplication.Presentations.Open2007(FILE);
foreach (PowerPoint.Slide pptSlide in pptPresentation.Slides)
{
   pptSlide.Export(NEWNAME, "PNG", 1024, 768);
}
</code></pre>

<p>my problem is that i will show those images in my winform picturebox one after one like slide show. winform will load with maximize state and picturebox dock has been set to fill.</p>

<p>i do not know where my application will run. may be my application will run in 15 inch monitor or may be 17 inch or may be 21 inch. each pc may have different resolution. also my application may run in pc which is connected with big LCD TV as monitor.</p>

<p>i want to save each slide to image in such a way as a result when image will be shown through picturebox then image should be pixelated. this is my main concern. so please guide me how could i save each slide to image as a result image should be pixelated wherever it is shown irrespective of monitor size and resolution.</p>

<p>so tell me what height and width i should specify when will save each slide to image.</p>

<p>if possible please guide me with concept or sample code to achieve what i am after. thanks</p>
