Welcome to the Southern African Autolisp Website.

Afra-lISP


You are Visitor Number since 21st June 1999.


aspect_ratio

aspect_ratio

Aspect_Ratio set to 0.5.

aspect_ratio

Aspect_Ratio set to 2.0.

This attribute specifies the ratio of the width of an image to it's height.
(width divided by height.) If zero (0.0), the tile is fitted to the size of the image.
Possible values are floating-point values.

default: none.


DCL Code Sample

lisp49o : dialog {				//dialog name
          label = "aspect_ratio" ;		//give it a label
  
        : image {				//define image tile
          key = "im1" ;				//give it a name
          width = 5.0 ;				//set width
	  aspect_ratio = 2.0;			//set the ratio
	  alignment = centered;			//center the image
        }					//end image

	spacer;					//add a space

        ok_cancel ;				//predefined OK/Cancel button

        }					//end dialog


All Tutorials and Code are provided "as-is" for purposes of instruction and
utility and may be used by anyone for any purpose entirely at their own risk.
Please respect the intellectual rights of others.
All material provided here is unsupported and without warranty of any kind.
No responsibility will be taken for any direct or indirect consequences
resulting from or associated with the use of these Tutorials or Code.

Copyright © 1999 by Kenny Ramage
All rights reserved.
Information in this document is subject to change without notice.
Site created and maintained by Kenny Ramage.