Thread: Image Creation

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    Seattle, WA,USA
    Posts
    84
    Rep Power
    14
    I'm wondering if anybody knows of a tutorial or could write me a sample script on simple image creation. I'm just wondering just in case I ever need it.

    ------------------
    Jerome Gagner
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Amsterdam, NL
    Posts
    3
    Rep Power
    0
    header("content-type: image/gif");
    $gif = ImageCreate(16,16);
    $bg = ImageColorAllocate($gif,255,0,0);

    ImageFilledRectangle($gif,0,0,16,16,$bg);

    imagegif($gif);


    A simple script

Similar Threads

  1. Problem with image resizing
    By willms_jay in forum PHP Development
    Replies: 0
    Last Post: February 12th, 2004, 12:23 AM
  2. Replies: 2
    Last Post: December 20th, 2003, 11:56 AM
  3. Browser (cache?) problem after image upload
    By mugane in forum PHP Development
    Replies: 7
    Last Post: November 4th, 2003, 11:39 AM
  4. onMouseover, onClick and image maps
    By nat in forum HTML Programming
    Replies: 5
    Last Post: September 24th, 2003, 11:41 PM
  5. Seamlessly looping Flash image???
    By Static Hysteria in forum Beginner Programming
    Replies: 3
    Last Post: September 19th, 2003, 02:10 PM

IMN logo majestic logo threadwatch logo seochat tools logo