User Tools

Site Tools


image_draw_a_graphic_image_.htm
Navigation:  Language Reference > 13 - Built-in Functions >====== IMAGE (draw a graphic image) ====== Previous pageReturn to chapter overviewNext page

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

blk2blue.jpg

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

image_draw_a_graphic_image_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1