libUEMF
A portable library for reading and writing WMF, EMF and EMF+ files
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
EMF Miscellaneous Values

Macros

#define U_NONE   0
 Generic for nothing selected for all flag fields.
 
#define U_PI   3.14159265358979323846
 pi
 
#define U_READ   1
 open file as "rb"
 
#define U_WRITE   0
 open file as "wb"
 
#define U_DV_SGNTR   0x08007664
 For U_DESIGNVECTOR Signature field.
 
#define U_LP_VERSION   0x0300
 For U_LOGPALETTE palVersion field.
 
#define U_RDH_RECTANGLES   1
 For U_RGNDATAHEADER iType field.
 
#define U_RDH_OBJSIZE   0x20
 For U_RGNDATAHEADER dwSIze field.
 
#define U_RGB_GAMMA_MIN   (uint16_t)02500
 For U_COLORADJUSTMENT ca[Red|Green|Blue]Gamma fields.
 
#define U_RGB_GAMMA_MAX   (uint16_t)65000
 For U_COLORADJUSTMENT ca[Red|Green|Blue]Gamma fields.
 
#define U_REFERENCE_WHITE_MIN   (uint16_t)6000
 For U_COLORADJUSTMENT caReferenceWhite field.
 
#define U_REFERENCE_WHITE_MAX   (uint16_t)10000
 For U_COLORADJUSTMENT caReferenceWhite field.
 
#define U_REFERENCE_BLACK_MIN   (uint16_t)0
 For U_COLORADJUSTMENT caReferenceBlack field.
 
#define U_REFERENCE_BLACK_MAX   (uint16_t)4000
 For U_COLORADJUSTMENT caReferenceBlack field.
 
#define U_COLOR_ADJ_MIN   ((int16_t)-100)
 For U_COLORADJUSTMENT ca[Contrast|Brightness|Colorfulness|RedGreenTint] fields.
 
#define U_COLOR_ADJ_MAX   (int16_t) 100
 For U_COLORADJUSTMENT ca[Contrast|Brightness|Colorfulness|RedGreenTint] fields.
 
#define U_MAX_PATH   1024
 longest path name for a file
 
#define U_LCS_SIGNATURE   0x50534F43
 logColorSpace Signature
 
#define U_LCS_VERSION   0x400
 logColorSpace Version
 
#define U_REC_FREE   1
 use with emf_append
 
#define U_REC_KEEP   0
 use with emf_append
 
#define U_ROW_ORDER_INVERT   1
 For RGBA_to_DIB, invert row order in DIB relative to pixel array.
 
#define U_ROW_ORDER_SAME   0
 For RGBA_to_DIB, same row order in DIB as in pixel array.
 
#define U_CT_NO   0
 For RGBA_to_DIB, do not use color table.
 
#define U_CT_BGRA   1
 For RGBA_to_DIB, use color table (16 bits or less only) BGRA colors, compatible with EMF+ ARGB.
 
#define U_CT_ARGB   1
 For RGBA_to_DIB, use color table (16 bits or less only) BGRA colors, compatible with EMF+ ARGB.
 
#define U_EMR_COMMENT_SPOOLFONTDEF   0x544F4E46
 For U_EMRCOMMENT record that is U_EMR_COMMENT_SPOOL, comment holds font definition informtion.
 
#define U_ROUND(A)   ( (A) > 0 ? floor((A)+0.5) : ( (A) < 0 ? -floor(-(A)+0.5) : (A) ) )
 

Detailed Description

Macro Definition Documentation

#define U_ROUND (   A)    ( (A) > 0 ? floor((A)+0.5) : ( (A) < 0 ? -floor(-(A)+0.5) : (A) ) )

Solaris 8 has problems with round/roundf, just use this everywhere