ImageCreate

(ismeretlen PHP verzió)

ImageCreate -- Create a new image

Description

int imagecreate (int x_size, int y_size)

ImageCreate() returns an image identifier representing a blank image of size x_size by y_size.

Példa 1. Creating a new GD image stream and outputting an image.

  1 
  2 <?php
  3 header ("Content-type: image/png");
  4 $im = @ImageCreate (50, 100)
  5     or die ("Cannot Initialize new GD image stream");
  6 $background_color = ImageColorAllocate ($im, 255, 255, 255);
  7 $text_color = ImageColorAllocate ($im, 233, 14, 91);
  8 ImageString ($im, 1, 5, 5,  "A Simple Text String", $text_color);
  9 ImagePng ($im);
 10 ?>
 11