CImage:Path


The Path method returns as a string the full pathname for the image attached to the CImage.

Syntax

sPath = CImage:Path()

sPath = CImage:Path( nMaxChars )

bullet.gif    The first form returns the full path as a string.

bullet.gif    The second form returns an abbreviated path of, at most, nMaxChars characters.

bullet.gif    On failure, this method returns nil.

Example

Suppose a CImage object I is attached to an image. Then

I = new_image()

-- Create a new CImage

Printf( "%s\n", I:Path() )

-- print all characters in the pathname.

Printf( "%s\n", I:Path(50) )

-- print, at most, 50 characters

Related Topics

CImage class, CSplitpath


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics, Inc. All Rights Reserved.