Update
Thanks for all the messages and to jhourcle for a lenghty explanation. Sorry for not responding back due to the time difference. The essence of the code is to generate little triangles and rectangles on a given line dynamically based on the input file and hence I am not using any photos or images with gradient (hence I feel jpeg is not an option for me). These triangle are 3 pixel in the base and height. The problem I am having is that the slope of the triangle is not smooth (can this problem be related to my screen resolution? but did not have this problem before). Also the overall image does not appear to be sharp. The code runs into several hundered lines and I will put the relavant code. When I try to use true color, I get a black background. When I remove the truecolor parameter, I get a image with a white back ground (how is this influencing the image background). If there is a way to post the image, please let me know and I will do it as I am not sure if that the best quality one can get. Also note that using gif, png did not change the final image resolution. my GD package does not support tif. I feel the problem is related to inability to use true color as I tried to specify to use truecolor instead of palette based color but not successful.Thanks Nageshuse GD; $im = new GD::Image(1000,100,1); code to generate polygons (triangle) and rectangles print $im->png(0);
In reply to How to improve image resolution...Continued by chakkaln
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |