add_ole_object method

add_ole_object(self, top_row, top, left_column, left, height, width, image_data)

Adds an OleObject.

Returns


def add_ole_object(self, top_row, top, left_column, left, height, width, image_data):
    ...
ParameterTypeDescription
top_rowint
topint
left_columnint
leftint
heightint
widthint
image_databytes

Example

from aspose import pycore
import bytearray
import int

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)

See Also