IMAGE (draw a graphic image)

Top  Previous  Next

 

IMAGE( x , y , [ width ] , [ height ] , filename [,attributelist])

IMAGE

Places a graphic image on the current window or report.

X

An integer expression that specifies the horizontal position of the starting point.

Y

An integer expression that specifies the vertical position of the starting point.

Width

An integer expression that specifies the width. This may be a negative number. If omitted, defaults to the width of the graphic as it is stored.

Height

An integer expression that specifies the height. This may be a negative number. If omitted, defaults to the height of the graphic as it is stored.

filename

A string constant or variable containing the name of the file to display.

attributelist

A string constant, variable, or EQUATE containing an optional type of output document and its associated attributes. Only valid when the target is a REPORT. See EXTEND

The IMAGE procedure places a graphic image on the current window or report at the position and size specified by its x, y, width, and height parameters. This may be a bitmap (.BMP), icon (.ICO), PaintBrush (.PCX), Graphic Interchange Format (.GIF), JPEG (.JPG), or Windows metafile (.WMF). This procedure is valid in Clarion Win32 Windows, and also for REPORT structures in both Clarion Win32 and Clarion#.

Example:

MDIChild WINDOW('Child One'),AT(0,0,320,200),MDI,MAX,HVSCROLL

         !window controls

        END

CODE

OPEN(MDIChild)

IMAGE(100,50,100,50,'LOGO.BMP')   !Draw graphic image

 

See Also:

Current Target

SETPENCOLOR

SETPENWIDTH

SETPENSTYLE