in reply to Re: How to create images with 300dpi?
in thread How to create images with 300dpi?
Thanks, but I have tried this already and didn't work. I should have given more info- I am using Venn::Chart for creating Venn diagrams. This module uses GD to draw the charts.
#!/usr/bin/perl use warnings; use Carp; use strict; use Venn::Chart; (A) # Create the Venn::Chart constructor my $venn_chart = Venn::Chart->new( 500, 500 ) or die("error : $!"); + (B) my $venn_chart = Venn::Chart->new( 500, 500,1 ) or die("error : $! +");
I have tried both ways- A and B. Could it be that Venn::Chart is using default 8-bit image settings while calling GD? Diving into Chart.pm shows up --
sub new { my ( $self, $width, $height ) = @_; $self = ref($self) || $self; my $this = {}; bless $this, $self; ----- ----- }
This tells me that it is taking only width, height as parameters. There are other options also but I am not sure which one to play with as I am not into OOP. Looks like it is time I learn object orientation too.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to create images with 300dpi?
by BrowserUk (Patriarch) on May 26, 2012 at 12:06 UTC | |
by aky (Acolyte) on May 26, 2012 at 12:47 UTC |