Help for this page

Select Code to Download


  1. or download this
    $i = GD::Image->new( 10, 10, 1 );;
    $i->setPixel( $_, $_, $_ ) for 0 .. 9;;
    
  2. or download this
    $x = $i->gd;;
    print unpack 'C*', $x;;
    
  3. or download this
    255 254            ## (A sig of sorts) Low bit of second byte means tr
    +ue color
    0 10               ## Width in pixels
    ...
    0000 0000 0000 0000 0000 0000 0000 0007 0000 0000 
    0000 0000 0000 0000 0000 0000 0000 0000 0008 0000 
    0000 0000 0000 0000 0000 0000 0000 0000 0000 0009