contents   index   previous   next



GD.fromGd()

syntax:

GD.fromGd(filename)

where:

filename - name of GD file to open.

 

return:

object - new GD object with the contents of the specified file, or null if there was an error.

 

description:

This method attempts to open the specified GD file, and then reads in the data. A GD file is one created with the toGd() method, and is written in the library's native format. If there is an error opening the file or reading the data, then null is returned.

 

see:

#link <gd>, GD.fromGif(), GD toGd()

 

 


GD.fromGif()