add method

add(self, top_row, left_column, stream)

Adds a picture to the collection.

Returns

Picture object index.


def add(self, top_row, left_column, stream):
    ...
ParameterTypeDescription
top_rowintUpper left row index.
left_columnintUpper left column index.
streamio.RawIOBaseStream object which contains the image data.

Example


# add a picture
with open("image.jpg", "rb") as fs:
    pictures.add(1, 1, fs)

add(self, top_row, left_column, file_name)

Adds a picture to the collection.

Returns

Picture object index.


def add(self, top_row, left_column, file_name):
    ...
ParameterTypeDescription
top_rowintUpper left row index.
left_columnintUpper left column index.
file_nameSystem.StringImage filename.

Example


# add a picture
pictures.add(1, 1, "image.jpg")

add(self, top_row, left_column, bottom_row, right_column, stream)

Adds a picture to the collection.

Returns

Picture object index.


def add(self, top_row, left_column, bottom_row, right_column, stream):
    ...
ParameterTypeDescription
top_rowintUpper left row index.
left_columnintUpper left column index.
bottom_rowintLower right row index
right_columnintLower right column index
streamio.RawIOBaseStream object which contains the image data.

Example


# add a picture
with open("image.jpg", "rb") as fs:
    pictures.add(1, 1, 5, 5, fs)

add(self, top_row, left_column, bottom_row, right_column, file_name)

Adds a picture to the collection.

Returns

Picture object index.


def add(self, top_row, left_column, bottom_row, right_column, file_name):
    ...
ParameterTypeDescription
top_rowintUpper left row index.
left_columnintUpper left column index.
bottom_rowintLower right row index
right_columnintLower right column index
file_nameSystem.StringImage filename.

Example


# add a picture
pictures.add(1, 1, 5, 5, "image.jpg")

add(self, top_row, left_column, stream, width_scale, height_scale)

Adds a picture to the collection.

Returns

Picture object index.


def add(self, top_row, left_column, stream, width_scale, height_scale):
    ...
ParameterTypeDescription
top_rowintUpper left row index.
left_columnintUpper left column index.
streamio.RawIOBaseStream object which contains the image data.
width_scaleintScale of image width, a percentage.
height_scaleintScale of image height, a percentage.

Example


# add a picture
with open("image.jpg", "rb") as fs:
    pictures.add(1, 1, fs, 50, 50)

add(self, top_row, left_column, file_name, width_scale, height_scale)

Adds a picture to the collection.

Returns

Picture object index.


def add(self, top_row, left_column, file_name, width_scale, height_scale):
    ...
ParameterTypeDescription
top_rowintUpper left row index.
left_columnintUpper left column index.
file_nameSystem.StringImage filename.
width_scaleintScale of image width, a percentage.
height_scaleintScale of image height, a percentage.

Example


# add a picture
pictures.add(1, 1, "image.jpg", 50, 50)

See Also