By given image handle and crop handle, set the crop to the image.
FUNCTION SetImageCropObject(
image : HANDLE;
crop : HANDLE): BOOLEAN;def vs.SetImageCropObject(image, crop):
return BOOLEAN| Name | Type | Description |
|---|---|---|
| image | HANDLE | |
| crop | HANDLE |
resultOK := SetImageCropObject(image, crop);import vs
# By given image handle and crop handle, set the crop to the image.
image = vs.FSActLayer() # handle to the first selected object on the active layer
crop = vs.NextSObj(vs.FSActLayer()) # handle to the next selected object
ok = vs.SetImageCropObject(image, crop)
if ok:
vs.Message('SetImageCropObject succeeded')
else:
vs.Message('SetImageCropObject failed')Availability: from Vectorworks 2014