Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 936 Bytes

File metadata and controls

43 lines (33 loc) · 936 Bytes

GetTextureBitmap

Description

Function GetTextureBitmap returns the bitmap object attached to the referenced texture.

FUNCTION GetTextureBitmap(shaderRecord : HANDLE): HANDLE;
def vs.GetTextureBitmap(shaderRecord):
    return HANDLE

Parameters

Name Type Description
shaderRecord HANDLE Handle to shader record.

Remarks

Returns the bitmap object attached to the shader record, NIL if none

Examples

resultH := GetTextureBitmap(shaderRecord);
import vs

# Function GetTextureBitmap returns the bitmap object attached to the
# referenced texture.
shaderRecord = vs.GetObject('MyRecord')  # handle to a record format

objHandle = vs.GetTextureBitmap(shaderRecord)
if objHandle is not None:
    vs.Message('Created object handle: ' + str(objHandle))

Version

Availability: from VectorWorks8.0

Category