my $image = GD::Image->new(1, 1); my $transparent = $image->colorAllocate(0, 0, 0); $image->transparent($transparent);