ObjectDCL Banner

GetPictureSize Method

Description

This method will return the size of a picture.

Parameters

ProjectFile
String identifying the project as it was passed in LoadProject.
PictureID
Picture specifying the picture from the project folder.

Return Values

Returns the following according to the situation:

  • A Point indicating the width and height of the picture
  • Nil if the picture or project is not found.

AutoLISP Syntax

The method takes no parameter.

CopyCode imageCopy Code
(Odcl_GetPictureSize 
		ProjectFile [as String]
		PictureID [as Picture])

Example

CopyCode imageCopy Code
; Get the size of the picture
(Setq rValue (Odcl_GetPictureSize "MyProject" 110))