How to display an image (Image generation)

From: arun kv <arun(at)library(dot)iisc(dot)ernet(dot)in>
To: PGSQL <pgsql-php(at)postgresql(dot)org>
Subject: How to display an image (Image generation)
Date: 2002-09-25 08:55:27
Message-ID: Pine.BSO.4.44.0209251422200.25879-100000@library.iisc.ernet.in
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

hai ,
I am using the code
<?php
Header("Content-type: image/gif");
$image = ImageCreate(100,50);
$black = ImageColorAllocate($image,0,0,0);
$white = ImageColorAllocate($image,255,255,255);
ImageArc($image,50,25,48,0,$white);
ImageGif($image);
Imagedestroy($image);
?>
to display an image but the code is not working. how shud the code be
and do i need to enable any libraries to do this. i have to get an image
and get the midpoint(xy coordinate) of that image . how do i do that.
if i run the above code i won't get any error but nothing will be
displayed. how do i do this.
Arun

Responses

Browse pgsql-php by date

  From Date Subject
Next Message Miguel Carvalho 2002-09-25 09:02:35 Re: How to display an image (Image generation)
Previous Message Justin Clift 2002-09-25 04:28:40 Re: Display the orginal Upper cases