api: write xintensity and rawintensity using root_add_int().