Creates a paint node from an image resource.
FUNCTION CreatePaintFromImage(image : HANDLE): HANDLE;def vs.CreatePaintFromImage(image):
return HANDLE| Name | Type | Description |
|---|---|---|
| image | HANDLE | Handle to the image resource from which a paint node is to be created. |
BEGIN
TempPhotoRsrcHand := GetObject(TempPhotoRsrcName);
TempPhotoObjHand := CreatePaintFromImage(TempPhotoRsrcHand);import vs
# Creates a paint node from an image resource.
image = vs.FSActLayer() # handle to the first selected object on the active layer
objHandle = vs.CreatePaintFromImage(image)
if objHandle is not None:
vs.Message('Created object handle: ' + str(objHandle))Availability: from VectorWorks10.0