Html_Element_Image_Create()

Abstract

Creates an HtmlT_Element for an image file.

Syntax

Html_Element_Image_Create (image_path, image_name, options)
Argument Type Description
image_path const char * the path to the image file
image_name const char * the name to be used in the HTML code for the image
options int options combined as a bitwise "OR"; see Details

Return Type

HtmlT_Element *

the element that represents the image

html.h

Details

Takes a string that is the path to an image file, and creates an HtmlT_Element that represents that image file.

Multiple options are indicated by passing a bitwise OR of all desired options. There are several options for this function:

  • HTMLC_IMAGE_DONT_OVERWRITE — do not overwrite image existing in destination directory
  • HTMLC_IMAGE_OPT_HORIZ_CENTER — center the image element
  • HTMLC_IMAGE_OPT_HORIZ_LALIGN — left align the image element
  • HTMLC_IMAGE_OPT_HORIZ_RALIGN — right align the image element

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com