Procedure GetTexBitmapOrigin returns the origin of the bitmap applied to the referenced texture bitmap. The origin is measured in pixels, with the top left corner as (0,0).
PROCEDURE GetTexBitmapOrigin(
textureBitmap : HANDLE;
VAR originX : INTEGER;
VAR originY : INTEGER);def vs.GetTexBitmapOrigin(textureBitmap):
return (originX, originY)| Name | Type | Description |
|---|---|---|
| textureBitmap | HANDLE | Handle to texture bitmap. |
| originX | INTEGER | Returns X coordinate of bitmap origin. |
| originY | INTEGER | Returns Y coordinate of bitmap origin. |
Origin x and y are in pixels from paint node top left
GetTexBitmapOrigin(textureBitmap, 1, 2);import vs
# Procedure GetTexBitmapOrigin returns the origin of the bitmap applied to
# the referenced texture bitmap.
textureBitmap = vs.FSActLayer() # handle to the first selected object on the active layer
originX, originY = vs.GetTexBitmapOrigin(textureBitmap)
vs.Message('GetTexBitmapOrigin returned: ' + str((originX, originY)))GetTexBitmapOrigin is obsolete as of VectorWorks9.0
Availability: from VectorWorks8.0