Home/ Reference/ Find & Traverse

coll.FindShapes("", 5, True)

Every bitmap.

Signature

coll.FindShapes("", 5, True)

Notes

Every bitmap.

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
page = doc.ActivePage

bitmaps = page.FindShapes("", 5, True)         # 5 = bitmap
print("Bitmaps: ", bitmaps.Count)

for i in range(1, bitmaps.Count + 1):
    b = bitmaps.Item(i)
    print(i, "Size: ", b.SizeWidth, "x", b.SizeHeight)

About this section: Find & Traverse

Find & Traverse — walking the shape tree.

Other entries in this section