pike.git / lib / modules / _Image_PSD.pmod

version» Context lines:

pike.git/lib/modules/_Image_PSD.pmod:250:    // opacity. Gives a rather good aproximation.    case "sLit":    return "hardlight";       default:    werror("WARNING: PSD: Unsupported mode: "+mode+". Skipping layer\n");    return 0;    }   }    - //! @decl array(Image.Layer) decode_layers( string data, mapping|void options )) + //! @decl array(Image.Layer) decode_layers( string data, mapping|void options )   //!   //! Decodes a PSD image to an array of Image.Layer objects   //!   //! Takes the same aptions mapping as @[_decode], note especially   //! "draw_all_layers":1.   //!   //! The layer object have the following extra variables (to be queried - //! using @ref[Image.Layer()->get_misc_value]): + //! using @[Image.Layer()->get_misc_value]):   //!   //! @string   //! @value "image_guides"   //! Returns array containing guide definitions.   //! @value "name"   //! Returns string containing the name of the layer.   //! @value "visible"   //! FIXME: Undocumented.   //! @value "active"   //! FIXME: Undocumented.
pike.git/lib/modules/_Image_PSD.pmod:353:    }    }   // werror("%O\n", layers );    return layers;   }      //! @decl mapping _decode(string|mapping data, mapping|void options)   //!   //! Decodes a PSD image to a mapping, with at least an   //! 'image' and possibly an 'alpha' object. Data is either a PSD image, or - //! a mapping (as received from @ref[__decode]) + //! a mapping (as received from @[__decode])   //!   //! Supported options   //!   //! @string   //! @value "background"   //! ({r,g,b})||Image.Color object   //!   //! @value "draw_all_layers:1"   //! Draw invisible layers as well   //!
pike.git/lib/modules/_Image_PSD.pmod:381:   //! Do not asume 'Normal' for unknown layer modes.   //!   //! @value "mark_layers:1"   //! Draw an outline around all (drawn) layers   //!   //! @value "mark_layer_names:Image.Font object"   //! Write the name of all layers using the font object,   //!   //! @value "mark_active_layer:1"   //! Draw an outline around the active layer + //! @endstring   //!   //! @note - //! Throws upon error in data. For more information, see @ref[__decode] + //! Throws upon error in data. For more information, see @[__decode]   mapping _decode( string|mapping what, mapping|void opts )   {    mapping data;    if(!opts) opts = ([]);    if(mappingp(what))    data = what;    else    data = __decode( what );    what=0;