| **Navigation:**  [[introduction.htm|Language Reference]] > 13 - Built-in Functions >====== ImageToPng(convert image to PNG) ====== | [[image draw a graphic image .htm|{{btn_prev_n.gif|Previous page}}]][[introduction.htm|{{btn_home_n.gif|Return to chapter overview}}]][[imagerotateflip.htm|{{btn_next_n.gif|Next page}}]] | | || **ImageToPng( fileNameIn, [fileNameOut] )** {{blk2blue.jpg|blk2blue.jpg}} | | | | //fileNameIn// | the name of the file to convert | | __//fileNameOut//__ | (optional) the name of the PNG output file | Convert any Clarion supported format image file to a PNG file, changing the fileName extension to PNG. Optionally supply a new name for the created file. **Requirements:** Create an instance of the ClaRunExtClass to call its methods. **distribute ClaRunExt.dll (requires that .Net 3.5 or higher is installed on target machines)** Example: **PROGRAM** | | **MAP** | | | **END** | | | **INCLUDE('ClaRunExt.inc'),ONCE** | | **MyClaRun** | **ClaRunextClass**        **!create instance of ClaRunExtClass** | | | | | **CODE** | MyClaRun.ImageToPng('Lawnmower.bmp)        !creates Lawnmower.png MyClaRun.ImageToPng('PicnicTable.bmp', 'PicnicTblWithBench.png') **See Also:** [[imagetopng.htm|ImageToPng]]