pike.git / lib / modules / _Image_XPM.pmod

version» Context lines:

pike.git/lib/modules/_Image_XPM.pmod:22:   # define TD(X)   # define TE(X)   #endif      //! @decl mapping _decode(string bytes, mapping|void options)   //! @belongs Image.XPM   //!   //! Decode the given XPM image.   //!   //! @mapping - //! @member Image.Image img - //! @member Image.Image alpha - //! @member string format + //! @member Image.Image "img" + //! @member Image.Image "alpha" + //! @member string "format"   //! @endmapping   //!   //! No options are currently supported.      mapping _decode( string what, void|mapping opts )   {    array data;    mapping retopts = ([ ]);    retopts->format = "image/xpm";    if(!opts)
pike.git/lib/modules/_Image_XPM.pmod:119:   //! @decl string encode(Image.Image image, mapping|void options)   //! @belongs Image.XPM   //!   //! Encode the given image as a XPM image.   //!   //! This will, at least currently, always produce a   //! 2-characters-per-pixel XPM.   //!   //! The supported options are:   //! @mapping - //! @member string(1..128) name - //! @member Image.Colortable colortable - //! @member Image.Image alpha - //! @member string(1..128) comment + //! @member string(1..128) "name" + //! @member Image.Colortable "colortable" + //! @member Image.Image "alpha" + //! @member string(1..128) "comment"   //! @endmapping      string encode( object what, mapping|void options )   {    int x,y,q;    TI("Encode init");    if(!options) options = ([]);    if(!cmap_t)    {    cmap_t = allocate( 8100 );