How add image texture to object

I need add part of image (image is transparenting in some places) to object?

for example I need simple procedure

def appimage(“name_object”, “name of texture”, dx, dy)

1 Like

This working, but I cant load image and assign to object

tek =
tek.diffuse_color = (1.0, 0.0, 0.0, 0.8)
print(“tekstura:=”, tek)