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

Drawing high-quality image of a grid with GDI+

Thread ID:





11370 Mar 3,2004 09:01 PM UTC Mar 3,2004 09:46 PM UTC WinForms 1
Tags: GridControl
Matt Straczek
Asked On March 3, 2004 09:01 PM UTC

I create .jpg image from an instance of Syncfusion.Windows.Forms.Grid.GridControl. (I used PrintAsBitmap sample project as a guideline for my code.) However, the quality of .jpg image is really poor. Is anyone aware of any articles / code samples / postings that deal with creating high-quality images from an instance of Syncfusion.Windows.Forms.Grid.GridControl?

Administrator [Syncfusion]
Replied On March 3, 2004 09:46 PM UTC

The PrintAsBitmap just compreeses or expands the bitmap to fit the target rectangle. This will lose quality unless the target rectangle is the exact size of the original grid. So, one possible solution is to try to redraw a zoomed grid so the original grid is the exact size of your target area before you do the PrintAsBitmap. Currently, ther eis no built in zoom functionality though it is on our to-do for a future version. Here is a link to a forum thread that has a zoom sample. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=6367


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon