Changeset 825
- Timestamp:
- Apr 21, 2006, 8:09:30 PM (16 years ago)
- Location:
- libcaca/trunk/cucul
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/cucul/colour.c
r811 r825 34 34 * will use these colours. 35 35 * 36 * Color values are those defined in \ecucul.h, such as CUCUL_COLOR_RED36 * Color values are those defined in cucul.h, such as CUCUL_COLOR_RED 37 37 * or CUCUL_COLOR_TRANSPARENT. 38 38 * -
libcaca/trunk/cucul/dither.c
r816 r825 422 422 /** \brief Set dither antialiasing 423 423 * 424 * Tell the renderer whether to antialias the dither. Antialiasing smoothen 424 * Tell the renderer whether to antialias the dither. Antialiasing smoothens 425 425 * the rendered image and avoids the commonly seen staircase effect. 426 426 * 427 * \li \ e"none": no antialiasing.428 * 429 * \li \ e"prefilter": simple prefilter antialiasing. This is the default427 * \li \c "none": no antialiasing. 428 * 429 * \li \c "prefilter": simple prefilter antialiasing. This is the default 430 430 * value. 431 431 * … … 447 447 * list is a NULL-terminated array of strings, interleaving a string 448 448 * containing the internal value for the antialiasing method to be used with 449 * \ecucul_set_dither_antialias(), and a string containing the natural449 * cucul_set_dither_antialias(), and a string containing the natural 450 450 * language description for that antialiasing method. 451 451 * … … 469 469 * 470 470 * Tell the renderer which colours should be used to render the 471 * bitmap. Valid values for \ estr are:472 * 473 * \li \ e"mono": use light gray on a black background.474 * 475 * \li \ e"gray": use white and two shades of gray on a black background.476 * 477 * \li \ e"8": use the 8 ANSI colours on a black background.478 * 479 * \li \ e"16": use the 16 ANSI colours on a black background.480 * 481 * \li \ e"fullgray": use black, white and two shades of gray for both the471 * bitmap. Valid values for \c str are: 472 * 473 * \li \c "mono": use light gray on a black background. 474 * 475 * \li \c "gray": use white and two shades of gray on a black background. 476 * 477 * \li \c "8": use the 8 ANSI colours on a black background. 478 * 479 * \li \c "16": use the 16 ANSI colours on a black background. 480 * 481 * \li \c "fullgray": use black, white and two shades of gray for both the 482 482 * characters and the background. 483 483 * 484 * \li \ e"full8": use the 8 ANSI colours for both the characters and the484 * \li \c "full8": use the 8 ANSI colours for both the characters and the 485 485 * background. 486 486 * 487 * \li \ e"full16": use the 16 ANSI colours for both the characters and the487 * \li \c "full16": use the 16 ANSI colours for both the characters and the 488 488 * background. This is the default value. 489 489 * … … 515 515 * is a NULL-terminated array of strings, interleaving a string containing 516 516 * the internal value for the colour mode, to be used with 517 * \ecucul_set_dither_color(), and a string containing the natural517 * cucul_set_dither_color(), and a string containing the natural 518 518 * language description for that colour mode. 519 519 * … … 542 542 * 543 543 * Tell the renderer which characters should be used to render the 544 * dither. Valid values for \ estr are:545 * 546 * \li \ e"ascii": use only ASCII characters. This is the default value.547 * 548 * \li \ e"shades": use Unicode characters "U+2591 LIGHT SHADE", "U+2592544 * dither. Valid values for \c str are: 545 * 546 * \li \c "ascii": use only ASCII characters. This is the default value. 547 * 548 * \li \c "shades": use Unicode characters "U+2591 LIGHT SHADE", "U+2592 549 549 * MEDIUM SHADE" and "U+2593 DARK SHADE". These characters are also 550 550 * present in the CP437 codepage available on DOS and VGA. 551 551 * 552 * \li \ e"blocks": use Unicode quarter-cell block combinations. These552 * \li \c "blocks": use Unicode quarter-cell block combinations. These 553 553 * characters are only found in the Unicode set. 554 554 * … … 581 581 * is a NULL-terminated array of strings, interleaving a string containing 582 582 * the internal value for the character set, to be used with 583 * \ecucul_set_dither_charset(), and a string containing the natural583 * cucul_set_dither_charset(), and a string containing the natural 584 584 * language description for that character set. 585 585 * … … 604 604 * Tell the renderer which dithering method should be used. Dithering is 605 605 * necessary because the picture being rendered has usually far more colours 606 * than the available palette. Valid values for \ estr are:607 * 608 * \li \ e"none": no dithering is used, the nearest matching colour is used.609 * 610 * \li \ e"ordered2": use a 2x2 Bayer matrix for dithering.611 * 612 * \li \ e"ordered4": use a 4x4 Bayer matrix for dithering.613 * 614 * \li \ e"ordered8": use a 8x8 Bayer matrix for dithering.615 * 616 * \li \ e"random": use random dithering.617 * 618 * \li \ e"fstein": use Floyd-Steinberg dithering. This is the default value.606 * than the available palette. Valid values for \c str are: 607 * 608 * \li \c "none": no dithering is used, the nearest matching colour is used. 609 * 610 * \li \c "ordered2": use a 2x2 Bayer matrix for dithering. 611 * 612 * \li \c "ordered4": use a 4x4 Bayer matrix for dithering. 613 * 614 * \li \c "ordered8": use a 8x8 Bayer matrix for dithering. 615 * 616 * \li \c "random": use random dithering. 617 * 618 * \li \c "fstein": use Floyd-Steinberg dithering. This is the default value. 619 619 * 620 620 * \param d Dither object. … … 667 667 * is a NULL-terminated array of strings, interleaving a string containing 668 668 * the internal value for the dithering method, to be used with 669 * \ecucul_set_dither_dithering(), and a string containing the natural669 * cucul_set_dither_dithering(), and a string containing the natural 670 670 * language description for that dithering method. 671 671 * -
libcaca/trunk/cucul/export.c
r818 r825 44 44 * data is valid until cucul_free_buffer() is called. 45 45 * 46 * Valid values for \ eformat are:47 * 48 * \li \ e"caca": export native libcaca files.49 * 50 * \li \ e"ansi": export ANSI art (CP437 charset with ANSI colour codes).51 * 52 * \li \ e"html": export an HTML page with CSS information.53 * 54 * \li \ e"html3": export an HTML table that should be compatible with46 * Valid values for \c format are: 47 * 48 * \li \c "caca": export native libcaca files. 49 * 50 * \li \c "ansi": export ANSI art (CP437 charset with ANSI colour codes). 51 * 52 * \li \c "html": export an HTML page with CSS information. 53 * 54 * \li \c "html3": export an HTML table that should be compatible with 55 55 * most navigators, including textmode ones. 56 56 * 57 * \li \ e"irc": export UTF-8 text with mIRC colour codes.58 * 59 * \li \ e"ps": export a PostScript document.60 * 61 * \li \ e"svg": export an SVG vector image.62 * 63 * \li \ e"tga": export a TGA image.57 * \li \c "irc": export UTF-8 text with mIRC colour codes. 58 * 59 * \li \c "ps": export a PostScript document. 60 * 61 * \li \c "svg": export an SVG vector image. 62 * 63 * \li \c "tga": export a TGA image. 64 64 * 65 65 * \param cv A libcucul canvas … … 104 104 * Return a list of available export formats. The list is a NULL-terminated 105 105 * array of strings, interleaving a string containing the internal value for 106 * the export format, to be used with \ecucul_create_export(), and a string106 * the export format, to be used with cucul_create_export(), and a string 107 107 * containing the natural language description for that export format. 108 108 * -
libcaca/trunk/cucul/font.c
r813 r825 93 93 * 94 94 * This function loads a font and returns a handle to its internal 95 * structure. The handle can then be used with \ecucul_render_canvas()95 * structure. The handle can then be used with cucul_render_canvas() 96 96 * for bitmap output. 97 97 * 98 * Internal fonts can also be loaded: if \ e size is set to 0, \edata must98 * Internal fonts can also be loaded: if \c size is set to 0, \c data must 99 99 * be a string containing the internal font name. 100 100 * 101 * If \ e size is non-zero, the \e size bytes of memory at address \edata101 * If \c size is non-zero, the \c size bytes of memory at address \c data 102 102 * are loaded as a font. This memory are must not be freed by the calling 103 * program until the font handle has been freed with \ecucul_free_font().103 * program until the font handle has been freed with cucul_free_font(). 104 104 * 105 105 * \param data The memory area containing the font or its name. … … 219 219 * This function returns the maximum value for the current font's glyphs 220 220 * 221 * \param f The font, as returned by \ecucul_load_font()221 * \param f The font, as returned by cucul_load_font() 222 222 * \return The maximum glyph width. 223 223 */ … … 231 231 * This function returns the maximum value for the current font's glyphs 232 232 * 233 * \param f The font, as returned by \ecucul_load_font()233 * \param f The font, as returned by cucul_load_font() 234 234 * \return The maximum glyph height. 235 235 */ … … 241 241 /** \brief Free a font structure. 242 242 * 243 * This function frees all data allocated by \ecucul_load_font(). The243 * This function frees all data allocated by cucul_load_font(). The 244 244 * font structure is no longer usable by other libcucul functions. Once 245 245 * this function has returned, the memory area that was given to 246 * \ecucul_load_font() can be freed.247 * 248 * \param f The font, as returned by \ecucul_load_font()246 * cucul_load_font() can be freed. 247 * 248 * \param f The font, as returned by cucul_load_font() 249 249 */ 250 250 void cucul_free_font(cucul_font_t *f) … … 261 261 * 262 262 * The required image width can be computed using 263 * \e cucul_get_canvas_width(cv) and \e cucul_get_font_width(f). The required264 * height can be computed using \e cucul_get_canvas_height(cv) and265 * \e cucul_get_font_height(f).263 * cucul_get_canvas_width() and cucul_get_font_width(). The required 264 * height can be computed using cucul_get_canvas_height() and 265 * cucul_get_font_height(). 266 266 * 267 267 * Glyphs that do not fit in the image buffer are currently not rendered at … … 269 269 * 270 270 * \param cv The canvas to render 271 * \param f The font, as returned by \ecucul_load_font()271 * \param f The font, as returned by cucul_load_font() 272 272 * \param buf The image buffer 273 273 * \param width The width (in pixels) of the image buffer
Note: See TracChangeset
for help on using the changeset viewer.