Delete an image from a slide. Args: slide (SlidePage): The slide containing the image. figure_id (int): The ID of the image to delete.
(slide: SlidePage, figure_id: int)
| 232 | |
| 233 | |
| 234 | def del_image(slide: SlidePage, figure_id: int): |
| 235 | """ |
| 236 | Delete an image from a slide. |
| 237 | |
| 238 | Args: |
| 239 | slide (SlidePage): The slide containing the image. |
| 240 | figure_id (int): The ID of the image to delete. |
| 241 | """ |
| 242 | shape = element_index(slide, figure_id) |
| 243 | assert isinstance(shape, Picture), "The element is not a Picture." |
| 244 | slide.shapes.remove(shape) |
| 245 | |
| 246 | |
| 247 | def replace_paragraph(slide: SlidePage, div_id: int, paragraph_id: int, text: str): |
nothing calls this directly
no test coverage detected