Branch: Tag:

1999-05-03

1999-05-03 21:16:10 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

encoder: rle modes supported
options mapping added

Rev: src/modules/Image/encodings/bmp.c:1.11
Rev: src/modules/Image/encodings/x.c:1.19

2398:    <returntype>    <object>string </object></returntype>    <arguments><argument name='image'><type><object resolved='predef::Image.BMP.encode'/></type></argument> + <argument name='options'><type><mapping/></type></argument> +  +  </arguments> + </method><method name='encode'> +  <returntype> +  <object>string </object></returntype> +  <arguments><argument name='image'><type><object resolved='predef::Image.BMP.encode'/></type></argument>   <argument name='colortable'><type><object resolved='predef::Image.BMP.encode'/></type></argument>       </arguments> -  + </method><method name='encode'> +  <returntype> +  <object>string </object></returntype> +  <arguments><argument name='image'><type><object resolved='predef::Image.BMP.encode'/></type></argument> + <argument name='bpp'><type><int/></type></argument> +  +  </arguments>   </method><doc>   <text>   <p>Make a BMP. It default to a 24 bpp BMP file,   but if a colortable is given, it will be 8bpp   with a palette entry.</p>    - <p/> + <p><tt>option</tt> is a mapping that may contain: + <pre> + "colortable": Image.Colortable - palette + "bpp": 1|4|8|24 - force this many bits per pixel + "rle": 0|1 - run-length encode (default is 0) +  + </pre> + </p>   </text>   <group>    <param name='image'/>
2421:   <p>the encoded image as a string</p>   </text></group>   <group><bugs/><text> - <p>Doesn't support all BMP modes. At all.</p> + <p>Doesn't support old BMP mode, only "windows" mode.</p>   </text></group>   <group><seealso/><text>   <p><ref resolved='predef::Image.BMP.decode'>decode</ref></p></text></group>