add_ole_object Methode

add_ole_object(upper_left_row, top, upper_left_column, left, height, width, image_data)

Fügt ein OleObject hinzu.

Kehrt zurück

def add_ole_object(self, upper_left_row, top, upper_left_column, left, height, width, image_data):
    ...
ParameterTypBeschreibung
upper_left_rowint
topint
upper_left_columnint
leftint
heightint
widthint
image_databytes

Beispiel

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)

Siehe auch