#include "asimage.h"
Go to the source code of this file.
Defines | |
#define | PI 180 |
#define | ASIM_XML_ENABLE_SAVE (0x01<<0) |
#define | ASIM_XML_ENABLE_SHOW (0x01<<1) |
#define | ASXMLVAR_TargetWidth "target.width" |
#define | ASXMLVAR_TargetHeight "target.height" |
Functions | |
void | set_xml_image_manager (struct ASImageManager *imman) |
void | set_xml_font_manager (struct ASFontManager *fontman) |
ASImageManager * | create_generic_imageman (const char *path) |
ASFontManager * | create_generic_fontman (Display *dpy, const char *path) |
ASImage * | compose_asimage_xml (ASVisual *asv, struct ASImageManager *imman, struct ASFontManager *fontman, char *doc_str, ASFlagType flags, int verbose, Window display_win, const char *path) |
ASImage * | compose_asimage_xml_at_size (ASVisual *asv, struct ASImageManager *imman, struct ASFontManager *fontman, char *doc_str, ASFlagType flags, int verbose, Window display_win, const char *path, int target_width, int target_height) |
ASImage * | compose_asimage_xml_from_doc (ASVisual *asv, struct ASImageManager *imman, struct ASFontManager *fontman, struct xml_elem_t *doc, ASFlagType flags, int verbose, Window display_win, const char *path, int target_width, int target_height) |
void | show_asimage (ASVisual *asv, ASImage *im, Window w, long delay) |
ASImage * | build_image_from_xml (ASVisual *asv, struct ASImageManager *imman, struct ASFontManager *fontman, struct xml_elem_t *doc, struct xml_elem_t **rparm, ASFlagType flags, int verbose, Window display_win) |
Bool | save_asimage_to_file (const char *file2bsaved, ASImage *im, const char *strtype, const char *compress, const char *opacity, int delay, int replace) |
#define ASIM_XML_ENABLE_SAVE (0x01<<0) |
#define ASIM_XML_ENABLE_SHOW (0x01<<1) |
Definition at line 16 of file asimagexml.h.
#define ASXMLVAR_TargetHeight "target.height" |
#define ASXMLVAR_TargetWidth "target.width" |
#define PI 180 |
Definition at line 12 of file asimagexml.h.
Referenced by ROOT::Math::comp_ellint_3(), ContourList(), generate(), getGSLErrors(), handle_asxml_tag_gradient(), handle_asxml_tag_rotate(), piRandom(), ROOT::Math::sinint(), testRandomDist(), testSpecFunc(), and tornado().
ASImage* build_image_from_xml | ( | ASVisual * | asv, | |
struct ASImageManager * | imman, | |||
struct ASFontManager * | fontman, | |||
struct xml_elem_t * | doc, | |||
struct xml_elem_t ** | rparm, | |||
ASFlagType | flags, | |||
int | verbose, | |||
Window | display_win | |||
) |
Definition at line 2321 of file asimagexml.c.
References build_image_from_xml(), xml_elem_t::child, commit_xml_image_built(), fetch_asimage(), free(), handle_asxml_tag_background(), handle_asxml_tag_blur(), handle_asxml_tag_color(), handle_asxml_tag_composite(), handle_asxml_tag_gradient(), handle_asxml_tag_if(), handle_asxml_tag_img(), handle_asxml_tag_printf(), handle_asxml_tag_recall(), handle_asxml_tag_release(), handle_asxml_tag_save(), handle_asxml_tag_set(), handle_asxml_tag_solid(), handle_asxml_tag_text(), HANDLE_SIZED_TAG, height, if(), IsCDATA, LOCAL_DEBUG_OUT, mirror, mystrdup, NULL, xml_elem_t::parm, ptr, release_asimage(), REPLACE_STRING, result(), rotate, safe_asimage_destroy(), xml_elem_t::tag, tparm(), translate_tag_size(), xml_elem_delete, and xml_parse_parm.
Referenced by build_image_from_xml(), and compose_asimage_xml_from_doc().
ASImage* compose_asimage_xml | ( | ASVisual * | asv, | |
struct ASImageManager * | imman, | |||
struct ASFontManager * | fontman, | |||
char * | doc_str, | |||
ASFlagType | flags, | |||
int | verbose, | |||
Window | display_win, | |||
const char * | path | |||
) | [inline] |
Definition at line 319 of file asimagexml.c.
References compose_asimage_xml_from_doc(), NULL, xml_elem_delete, and xml_parse_doc.
ASImage* compose_asimage_xml_at_size | ( | ASVisual * | asv, | |
struct ASImageManager * | imman, | |||
struct ASFontManager * | fontman, | |||
char * | doc_str, | |||
ASFlagType | flags, | |||
int | verbose, | |||
Window | display_win, | |||
const char * | path, | |||
int | target_width, | |||
int | target_height | |||
) |
Definition at line 309 of file asimagexml.c.
References compose_asimage_xml_from_doc(), NULL, xml_elem_delete, and xml_parse_doc.
Referenced by load_xml2ASImage().
ASImage* compose_asimage_xml_from_doc | ( | ASVisual * | asv, | |
struct ASImageManager * | imman, | |||
struct ASFontManager * | fontman, | |||
struct xml_elem_t * | doc, | |||
ASFlagType | flags, | |||
int | verbose, | |||
Window | display_win, | |||
const char * | path, | |||
int | target_width, | |||
int | target_height | |||
) |
Definition at line 198 of file asimagexml.c.
References _as_xml_font_manager, _as_xml_image_manager, ASA_ASImage, ASIMAGE_QUALITY_DEFAULT, asxml_var_get, asxml_var_init, asxml_var_insert, ASXMLVAR_TargetHeight, ASXMLVAR_TargetWidth, build_image_from_xml(), xml_elem_t::child, create_generic_fontman(), create_generic_imageman(), destroy_font_manager(), destroy_image_manager(), ASVisual::dpy, False, forget_asimage(), fprintf(), free(), ASImage::height, i, ASImage::imageman, LOCAL_DEBUG_OUT, ASImage::magic, MAX_SEARCH_PATHS, mystrdup, NULL, ptr, safe_asimage_destroy(), scale_asimage(), ASImageManager::search_path, True, ASImage::width, and xml_print.
Referenced by compose_asimage_xml(), and compose_asimage_xml_at_size().
struct ASFontManager* create_generic_fontman | ( | Display * | dpy, | |
const char * | path | |||
) |
Definition at line 172 of file asimagexml.c.
References ASFONT_PATH_ENVVAR, copy_replace_envvar, create_font_manager(), free(), getenv(), NULL, safemalloc, and strcpy().
Referenced by compose_asimage_xml_from_doc().
struct ASImageManager* create_generic_imageman | ( | const char * | path | ) |
Definition at line 157 of file asimagexml.c.
References ASIMAGE_PATH_ENVVAR, copy_replace_envvar, create_image_manager(), free(), getenv(), LOCAL_DEBUG_OUT, NULL, SCREEN_GAMMA, ASImageManager::search_path, and show_progress.
Referenced by compose_asimage_xml_from_doc().
Bool save_asimage_to_file | ( | const char * | file2bsaved, | |
ASImage * | im, | |||
const char * | strtype, | |||
const char * | compress, | |||
const char * | opacity, | |||
int | delay, | |||
int | replace | |||
) |
Definition at line 329 of file asimagexml.c.
References ASImage2file(), ASIT_Bmp, ASIT_Cur, ASIT_Gif, ASIT_Ico, ASIT_Jpeg, ASIT_Png, ASIT_Pnm, ASIT_Ppm, ASIT_Tiff, ASIT_Xbm, ASIT_Xcf, ASIT_Xpm, EXPORT_ALPHA, EXPORT_APPEND, mystrcasecmp, NULL, params, show_error, TIFF_COMPRESSION_DEFLATE, TIFF_COMPRESSION_JPEG, TIFF_COMPRESSION_NONE, TIFF_COMPRESSION_OJPEG, TIFF_COMPRESSION_PACKBITS, and unlink.
Referenced by handle_asxml_tag_save().
void set_xml_font_manager | ( | struct ASFontManager * | fontman | ) |
void set_xml_image_manager | ( | struct ASImageManager * | imman | ) |
Definition at line 403 of file asimagexml.c.
References asimage2pixmap(), ASVisual::dpy, False, None, NULL, p, and PORTABLE_SELECT.