W.D Posted August 21, 2007 Report Share Posted August 21, 2007 Hi, I'm developing functionality to programatically create Chart and write it to image stream, and then write it into PDF. I managed to do it based on web forms component in PNG format. But I still have a couple of questions. Please help me. (1) With web forms, how much is the image quality difference among PNG, JPG, Bitmap and SVG? (2) Will I get better image quality if I use windows forms component? (3) I'm not sure this question is related to ChartFX or not. Please ignore it if it's not in ChartFX's range. After I write Chart into PDF, unlike other charts (for example embedded Excel Chart), it will only achieve good print quality when I choose High Quality or Standard graphic printing option in the Color Printer Setup. Is there something I can adjust within ChartFX? Thanks for your help. Regards, W.D Quote Link to comment Share on other sites More sharing options...
Frank Posted August 22, 2007 Report Share Posted August 22, 2007 > (1) With web forms, how much is the image quality difference among PNG, JPG, Bitmap and SVG? How do you measure quality? The PNG is pixel perfect. No loss in compression, so is the bitmap and SVG. The JPEG creates fuzziness around sharp edges. The SVG is vector based so it can be resized without getting "pixelated". > (2) Will I get better image quality if I use windows forms component? No. The Windows Form control doesn't provide support for SVG. > (3) I'm not sure this question is related to ChartFX or not. Please ignore it if it's not in ChartFX's range. Are you embedding the chart as a PNG? If the chart is being resized you will get pixelization. Quote Link to comment Share on other sites More sharing options...
W.D Posted August 22, 2007 Author Report Share Posted August 22, 2007 Hi Frank, >>> (3) I'm not sure this question is related to ChartFX or not. Please ignore it if it's not in ChartFX's range. >Are you embedding the chart as a PNG? If the chart is being resized you will get pixelization. I embdded the chart as SVG. I make the size of chart as ImgHeight=1000 and ImgWidth=1800, and then when I embed the chart into PDF, I scaled it to centi-meter based size (since only absolute unit can be used in writing PDF), something like 9cm*5cm. Is there another way to do it with better quality? Regards, W.D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.