void RCTContextSaveCurrentImage() { // for temp test Cairo.cairo_surface_flush(surface); /* Save the generated cairo surface image data to PNG file from Memories */ string path = Tizen.Applications.Application.Current.DirectoryInfo.Data + "CairoBorder.png"; Cairo.cairo_surface_write_to_png(surface, path); pathImage = path; //return path; return; }
void RCTContextUpdateCurrentImage() { // for temp test Cairo.cairo_surface_flush(surface); /* display cairo drawin on screen */ img = Cairo.evas_object_image_filled_add(ReactProgram.RctWindow); IntPtr imageData = Cairo.cairo_image_surface_get_data(surface); Cairo.evas_object_image_data_set(img, imageData); Cairo.evas_object_image_data_update_add(img, 0, 0, 1920, 1080); return; }