add_ole_object方法
add_ole_object(upper_left_row, top, upper_left_column, left, height, width, image_data)
添加一个 OleObject。
返回
def add_ole_object(self, upper_left_row, top, upper_left_column, left, height, width, image_data):
...
范围 | 类型 | 描述 |
---|---|---|
upper_left_row | int | |
top | int | |
upper_left_column | int | |
left | int | |
height | int | |
width | int | |
image_data | bytes |
例子
from aspose import pycore
with open("image.jpg", "rb") as fs:
len = pycore.cast(int, utils.filesize(fs))
imageData = bytearray(len)
fs.readinto(imageData)
oleObject = shapes.add_ole_object(4, 0, 5, 0, 300, 500, imageData)