Creates a paint node from an image resource on the specified location and rotation.
FUNCTION CreatePaintFromImgN(
image : HANDLE;
locPt : REAL;
rotDeg : REAL): HANDLE;def vs.CreatePaintFromImgN(image, locPt, rotDeg):
return HANDLE| Name | Type | Description |
|---|---|---|
| image | HANDLE | Handle to the image resource from which a paint node is to be created. |
| locPt | REAL | Location of the new paint node. |
| rotDeg | REAL | Rotation of the paint node in degrees. |
[[User:Orso.b.schmid|Orso]] [2012.11.27]: A Bitmap (paint) object is created on drawing.
pioPhotoObjHand := CreatePaintFromImgN( pioPhotoRsrcHand, 0, 0, 0 );
pioPhotoRsrcWidth := HWidth( pioPhotoObjHand );
pioPhotoRsrcHeight := HHeight( pioPhotoObjHand );
pioPhotoRsrcPixelW := GetObjectVariableLongint( pioPhotoObjHand, 530 );
pioPhotoRsrcPixelH := GetObjectVariableLongint( pioPhotoObjHand, 531 );import vs
# Creates a paint node from an image resource on the specified location and
# rotation.
image = vs.FSActLayer() # handle to the first selected object on the active layer
locPt = 1.0
rotDeg = 2.0
objHandle = vs.CreatePaintFromImgN(image, locPt, rotDeg)
if objHandle is not None:
vs.Message('Created object handle: ' + str(objHandle))Availability: from Vectorworks 2011