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
Header
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 directoryHTMLC_IMAGE_OPT_HORIZ_CENTER— center the image elementHTMLC_IMAGE_OPT_HORIZ_LALIGN— left align the image elementHTMLC_IMAGE_OPT_HORIZ_RALIGN— right align the image element