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/cxx/caca++.cpp

    r2822 r3495  
    292292}
    293293
    294 long int Canvas::importMemory(void const *buf, size_t len, char const *fmt)
    295 {
    296     return caca_import_memory(cv, buf, len, fmt);
    297 }
    298 
    299 long int Canvas::importFile(char const *file, char const *fmt)
    300 {
    301     return caca_import_file(cv, file, fmt);
     294long int Canvas::importFromMemory(void const *buf, size_t len, char const *fmt)
     295{
     296    return caca_import_canvas_from_memory(cv, buf, len, fmt);
     297}
     298
     299long int Canvas::importFromFile(char const *file, char const *fmt)
     300{
     301    return caca_import_canvas_from_file(cv, file, fmt);
    302302}
    303303
     
    307307}
    308308
    309 void *Canvas::exportMemory(char const *fmt, size_t *len)
    310 {
    311     return caca_export_memory(cv, fmt, len);
     309void *Canvas::exportToMemory(char const *fmt, size_t *len)
     310{
     311    return caca_export_canvas_to_memory(cv, fmt, len);
    312312}
    313313
Note: See TracChangeset for help on using the changeset viewer.