HyperWorks Desktop

*Stretch()

Indicates if the image is displayed in the entire display window or as its actual size.

*Stretch()

Indicates if the image is displayed in the entire display window or as its actual size.

Previous topic Next topic No expanding text in this topic  

*Stretch()

Indicates if the image is displayed in the entire display window or as its actual size.

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

Syntax

*Stretch(0/1)

Argument

Name

Description

 

0/1

0 - Stretch is ‘off’ (The image displayed is the actual size).

1 - Stretch is ‘on’ (The image is stretched to fill the window).

Example

*BeginWindow(Video)

       *IsActive()

       *BeginVideo()

           *Preferences(0, 0, 0, 0)

           *OverlaySettings(1, 10, 0)

           *LoadImage("D:/AMF_AVI/24car.bmp")

           *ZoomRect(292, 128, 534, 310)

           *Stretch(0)

           *MarkerCenter(345, 254)

           *BeginHeader(On)

               *PrimaryFont("Arial", 0, 0, 14)

               *SecondaryFont("Arial", 0, 0, 10)

               *TertiaryFont("Arial", 0, 0, 10)

               *Color(1)

               *Text("Video File Two")

           *EndHeader()

           *BeginFooter(On)

               *PrimaryFont("Arial", 0, 0, 10)

               *SecondaryFont("Arial", 0, 0, 10)

               *TertiaryFont("Arial", 0, 0, 10)

               *Color(1)

               *Text("Crash Test")

           *EndFooter()

       *EndVideo()

*EndWindow()

Application

MediaView.

Context

*BeginVideo()

*BeginWindow()

Comments

Stretching an image maintains the aspect ratio for that image.

See also

 

List of Session Statements