Skip to content

Latest commit

 

History

History
47 lines (37 loc) · 1.28 KB

File metadata and controls

47 lines (37 loc) · 1.28 KB

GetTexBFeatureStart

Description

Procedure GetTexBFeatureStart returns the "feature startpoint" of the referenced texture bitmap. The point is expressed in pixels from the top left corner of the bitmap.

PROCEDURE GetTexBFeatureStart(
				textureBitmap     : HANDLE;
				VAR featureStartX : INTEGER;
				VAR featureStartY : INTEGER);
def vs.GetTexBFeatureStart(textureBitmap):
    return (featureStartX, featureStartY)

Parameters

Name Type Description
textureBitmap HANDLE Handle to texture bitmap.
featureStartX INTEGER Returns X coordinate of feature start point.
featureStartY INTEGER Returns Y coordinate of feature start point.

Remarks

X and y are in paint node pixels from top left

Examples

GetTexBFeatureStart(textureBitmap, 1, 2);
import vs

# Procedure GetTexBFeatureStart returns the "feature startpoint" of
# the referenced texture bitmap.
textureBitmap = vs.FSActLayer()  # handle to the first selected object on the active layer

featureStartX, featureStartY = vs.GetTexBFeatureStart(textureBitmap)
vs.Message('GetTexBFeatureStart returned: ' + str((featureStartX, featureStartY)))

Version

Availability: from VectorWorks8.0

Category