| **Navigation:**  [[introduction.htm|Language Reference]] > 13 - Built-in Functions >====== IMAGE (draw a graphic image) ====== | [[idle arm periodic procedure .htm|{{btn_prev_n.gif|Previous page}}]][[introduction.htm|{{btn_home_n.gif|Return to chapter overview}}]][[imagetopng.htm|{{btn_next_n.gif|Next page}}]] | | || **IMAGE(**// x , y , //[ //width //] //, //[// height //] //, filename// [,//attributelist//]**)** {{blk2blue.jpg|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 [[comment set document formatting .htm|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.htm|Current Target]] [[setpencolor set line draw color .htm|SETPENCOLOR]] [[setpenwidth set line draw thickness .htm|SETPENWIDTH]] [[setpenstyle set line draw style .htm|SETPENSTYLE]]