跳转至

ExcelImage API

ExcelImage 类API参考文档。

类定义

class ExcelImage:
    """Excel图片类"""

主要方法

init(path, width=None, height=None, scale=None)

初始化图片对象。

参数: - path (str): 图片路径 - width (int, optional): 宽度 - height (int, optional): 高度 - scale (float, optional): 缩放比例

示例

from symphra_excel.images import ExcelImage

image = ExcelImage("logo.png", width=100, height=50)
sheet.insert_image("A1", image)

相关文档