Hi I'M using Perl GD to create an image with response to user entry and the database retrevial using the Perl GD and DBI and CGI modules. Even though i'm successful in making the png image my boss is not happy at the resoultion of the image. The code is as in below
my $im = new GD::Image(710,$Image_Height); my $white = $im->colorAllocate(255,255,255); my $black = $im->colorAllocate(0,0,0); my $blue = $im->colorAllocate(0,0,255); $im->transparent($white); $im->interlaced('true'); $im->filledRectangle($Trans_X1,$Image_Height-20,$Trans_X1,$Image_Heigh +t-10,$scale_line); ### Scale ###### $im->filledRectangle($Trans_X1+$Scale_Length,$Image_Height-20,$Tra +ns_X1+$Scale_Length,$Image_Height-10,$scale_line); ### Scale ###### $im->string(gdSmallFont,$Trans_X1,$Image_Height-32,1,$scale_line); $im->string(gdSmallFont,$Trans_X1+$Scale_Length,$Image_Height-32,$ +Length,$scale_line); open OUT,">$ID.png"; binmode OUT; # Convert the image to PNG and print it on standard output print OUT $im->png; close OUT;
Please let me know what to do to increase the resoultion of the image (above is psuedo code)

In reply to How to increase the resoultion of an PNG image by vinumanikandan

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.