Ignore:
Timestamp:
May 21, 2009, 10:55:21 PM (11 years ago)
Author:
Sam Hocevar
Message:

Add caca_export_area_to_memory() to export only a selected part of the
current canvas. This is useful to export dirty rectangles. Accordingly,
add caca_import_area_from_memory() and caca_import_area_from_file().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/src/img2txt.c

    r2833 r3495  
    11/*
    22 *  img2txt       image to text converter
    3  *  Copyright (c) 2006 Sam Hocevar <sam@zoy.org>
     3 *  Copyright (c) 2006-2009 Sam Hocevar <sam@hocevar.net>
    44 *                2007 Jean-Yves Lamoureux <jylam@lnxscene.org>
    55 *                All Rights Reserved
     
    8282    printf(
    8383    "img2txt Copyright 2006-2007 Sam Hocevar and Jean-Yves Lamoureux\n"
    84     "Internet: <sam@zoy.org> <jylam@lnxscene.org> Version: %s, date: %s\n"
     84    "Internet: <sam@hocevar.net> <jylam@lnxscene.org> Version: %s, date: %s\n"
    8585    "\n"
    8686    "img2txt, along with its documentation, may be freely copied and distributed.\n"
     
    225225    unload_image(i);
    226226
    227     export = caca_export_memory(cv, format?format:"ansi", &len);
     227    export = caca_export_canvas_to_memory(cv, format?format:"ansi", &len);
    228228    if(!export)
    229229    {
Note: See TracChangeset for help on using the changeset viewer.