#include <Eet.h>
#include <Evas.h>
Go to the source code of this file.
Typedefs | |
typedef _Data_Picture_Infos | Data_Picture_Infos |
Functions | |
int | main (int argc, char **argv) |
|
|
|
Definition at line 14 of file main.c. 00015 { 00016 Eet_File *eet; 00017 Eet_Data_Descriptor *edd; 00018 Imlib_Image *image; 00019 00020 Data_Picture_Edd = eet_data_descriptor_new("data_pictures",sizeof(Data_Picture_Infos), 00021 (void *)evas_list_next, 00022 (void *)evas_list_append, 00023 (void *)evas_list_data, 00024 (void *)evas_list_free, 00025 (void *) evas_hash_foreach, 00026 (void *) evas_hash_add, 00027 (void *)evas_hash_free); 00028 EET_DATA_DESCRIPTOR_ADD_BASIC(Data_Picture_Edd, Data_Picture_Infos, "name", name, EET_T_STRING); 00029 EET_DATA_DESCRIPTOR_ADD_BASIC(Data_Picture_Edd, Data_Picture_Infos, "author_name", author_name, EET_T_STRING); 00030 EET_DATA_DESCRIPTOR_ADD_BASIC(Data_Picture_Edd, Data_Picture_Infos, "where_from", where_from, EET_T_STRING); 00031 EET_DATA_DESCRIPTOR_ADD_BASIC(Data_Picture_Edd, Data_Picture_Infos, "date", date, EET_T_STRING); 00032 EET_DATA_DESCRIPTOR_ADD_BASIC(Data_Picture_Edd, Data_Picture_Infos, "comments", comments, EET_T_STRING); 00033 00034 eet = eet_open("fav.eet", EET_FILE_MODE_WRITE); 00035 image = imlib_load_image("./test_images/bg.png"); 00036 00037 eet_write(eet, "Version", " 1", strlen(" 1") + 1, 0); 00038 eet_data_image_write(eet, "1/picture", image, 0,0,0,0,50,0); 00039 00040 00041 eet_close(eet); 00042 00043 }
|