i did test a 466mpixel photo... 45m memory used... zooming, scrolling. i'm

happy. problem solved.



SVN revision: 42679
This commit is contained in:
Carsten Haitzler 2009-09-24 15:12:39 +00:00
parent fdb8792448
commit 7d2df6b27a
1 changed files with 4 additions and 3 deletions

View File

@ -46,12 +46,13 @@ test_photocam(void *data, Evas_Object *obj, void *event_info)
Evas_Object *win, *bg, *ph, *tb2, *bt;
char buf[PATH_MAX];
// FIXME: add a file selector and a "select a file" button.
const char *img[4] =
const char *img[5] =
{
"/home/raster/t1.jpg", // 5 mpixel
"/home/raster/t2.jpg", // 18 mpixel
"/home/raster/t3.jpg", // 39 mpixel
"/home/raster/t4.jpg" // 192 mpixel
"/home/raster/t4.jpg", // 192 mpixel
"/home/raster/t5.jpg" // 466 mpixel
};
win = elm_win_add(NULL, "photocam", ELM_WIN_BASIC);
@ -67,7 +68,7 @@ test_photocam(void *data, Evas_Object *obj, void *event_info)
evas_object_size_hint_weight_set(ph, 1.0, 1.0);
elm_win_resize_object_add(win, ph);
elm_photocam_file_set(ph, img[3]);
elm_photocam_file_set(ph, img[1]);
evas_object_show(ph);