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 )

where

    The first form returns the full path as a string.

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

    On failure, this method returns nil.

Example

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

I = CImage:new()

-- 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

CSplitpath class

CImage class