Whole document tree
ipa.h File Reference 
Main Page    Alphabetical List    Data Structures    File List    Data Fields    Globals     
ipa.h File Reference 
Data Structures struct   _wmfBMP struct   _wmfBMP_Draw_t struct   _wmfBMP_Read_t struct   _wmfBrush struct   _wmfColorData struct   _wmfDC struct   _wmfDrawArc_t struct   _wmfDrawLine_t struct   _wmfDrawPixel_t struct   _wmfDrawRectangle_t struct   _wmfDrawText_t struct   _wmfFlood_t struct   _wmfFont struct   _wmfFontData struct   _wmfFT_CacheEntry struct   _wmfFT_Mapping struct   _wmfFunctionReference struct   _wmfGS_FontData struct   _wmfGS_FontInfo struct   _wmfPen struct   _wmfPolyLine_t struct   _wmfPolyRectangle_t struct   _wmfRGB struct   _wmfROP_Draw_t struct   _wmfUserData_t struct   _wmfXML_FontData struct   _wmfXML_FontInfo Typedefs typedef _wmfRGB   wmfRGB typedef _wmfBMP   wmfBMP typedef _wmfBrush   wmfBrush typedef _wmfPen   wmfPen typedef _wmfFont   wmfFont typedef _wmfFontData   wmfFontData typedef _wmfFT_Mapping   wmfFT_Mapping typedef _wmfFT_CacheEntry   wmfFT_CacheEntry typedef _wmfColorData   wmfColorData typedef _wmfGS_FontData   wmfGS_FontData typedef _wmfGS_FontInfo   wmfGS_FontInfo typedef _wmfXML_FontData   wmfXML_FontData typedef _wmfXML_FontInfo   wmfXML_FontInfo typedef _wmfDC   wmfDC typedef _wmfFlood_t   wmfFlood_t typedef _wmfDrawPixel_t   wmfDrawPixel_t typedef _wmfDrawArc_t   wmfDrawArc_t typedef _wmfDrawLine_t   wmfDrawLine_t typedef _wmfPolyLine_t   wmfPolyLine_t typedef _wmfDrawRectangle_t   wmfDrawRectangle_t typedef _wmfPolyRectangle_t   wmfPolyRectangle_t typedef _wmfBMP_Read_t   wmfBMP_Read_t typedef _wmfBMP_Draw_t   wmfBMP_Draw_t typedef _wmfROP_Draw_t   wmfROP_Draw_t typedef _wmfDrawText_t   wmfDrawText_t typedef _wmfUserData_t   wmfUserData_t typedef _wmfFunctionReference   wmfFunctionReference typedef void(*  wmfMap  )(wmfAPI  *, wmfFont  *)typedef void(*  wmfCharDrawer  )(wmfAPI  *, wmfDrawText_t  *)Functions void  wmf_ipa_bmp_b64  (wmfAPI  *, wmfBMP_Draw_t  *, wmfStream  *)void  wmf_ipa_bmp_png  (wmfAPI  *, wmfBMP_Draw_t  *, char *)void  wmf_ipa_bmp_jpg  (wmfAPI  *, wmfBMP_Draw_t  *, char *)void  wmf_ipa_bmp_eps  (wmfAPI  *, wmfBMP_Draw_t  *, char *)void  wmf_ipa_bmp_read  (wmfAPI  *, wmfBMP_Read_t  *)void  wmf_ipa_bmp_free  (wmfAPI  *, wmfBMP  *)wmfBMP  wmf_ipa_bmp_copy  (wmfAPI  *, wmfBMP  *, unsigned int, unsigned int)int  wmf_ipa_bmp_color  (wmfAPI  *, wmfBMP  *, wmfRGB  *, unsigned int, unsigned int)void  wmf_ipa_bmp_setcolor  (wmfAPI  *, wmfBMP  *, wmfRGB  *, unsigned char, unsigned int, unsigned int)int  wmf_ipa_bmp_interpolate  (wmfAPI  *, wmfBMP  *, wmfRGB  *, float, float)void  wmf_ipa_font_init  (wmfAPI  *, wmfAPI_Options  *)void  wmf_ipa_font_map_gs  (wmfAPI  *, wmfGS_FontData  *, char *)void  wmf_ipa_font_map_xml  (wmfAPI  *, wmfXML_FontData  *, char *)void  wmf_ipa_font_map_set  (wmfAPI  *, wmfMap )void  wmf_ipa_font_map  (wmfAPI  *, wmfFont  *)void  wmf_ipa_font_dir  (wmfAPI  *, char *)float  wmf_ipa_font_stringwidth  (wmfAPI  *, wmfFont  *, char *)char *  wmf_ipa_font_lookup  (wmfAPI  *, char *)void  wmf_ipa_draw_text  (wmfAPI  *, wmfDrawText_t  *, wmfCharDrawer )void  wmf_ipa_color_init  (wmfAPI  *)void  wmf_ipa_color_add  (wmfAPI  *, wmfRGB  *)unsigned long  wmf_ipa_color_index  (wmfAPI  *, wmfRGB  *)unsigned long  wmf_ipa_color_count  (wmfAPI  *)wmfRGB  * wmf_ipa_color  (wmfAPI  *, unsigned long)char *  wmf_ipa_page_format  (wmfAPI  *, wmf_page_t )unsigned int  wmf_ipa_page_width  (wmfAPI  *, wmf_page_t )unsigned int  wmf_ipa_page_height  (wmfAPI  *, wmf_page_t )wmfRGB  wmf_rgb_white  (wmfAPI  *)wmfRGB  wmf_rgb_black  (wmfAPI  *)wmfRGB  wmf_rgb_color  (wmfAPI  *, float, float, float)
Typedef Documentation 
Function Documentation 
  
    
      
        
           
int wmf_ipa_bmp_color 
           
          (  
          wmfAPI  *           API ,            
         
        
                    
          wmfBMP  *           bmp ,            
         
        
                    
          wmfRGB  *           rgb ,            
         
        
                    
          unsigned int           
           x ,            
         
        
                    
          unsigned int           
           y            
         
        
          )  
                     
         
      
     
   
  
    
      
        
           
wmfBMP  wmf_ipa_bmp_copy 
           
          (  
          wmfAPI  *           API ,            
         
        
                    
          wmfBMP  *           bmp ,            
         
        
                    
          unsigned int           
           width ,            
         
        
                    
          unsigned int           
           height            
         
        
          )  
                     
         
      
     
   
  
    
      
        
           
void wmf_ipa_bmp_free 
           
          (  
          wmfAPI  *           API ,            
         
        
                    
          wmfBMP  *           bmp            
         
        
          )  
                     
         
      
     
   
  
    
      
        
           
int wmf_ipa_bmp_interpolate 
           
          (  
          wmfAPI  *           API ,            
         
        
                    
          wmfBMP  *           bmp ,            
         
        
                    
          wmfRGB  *           rgb ,            
         
        
                    
          float           
           x ,            
         
        
                    
          float           
           y            
         
        
          )  
                     
         
      
     
   
  
    
      
        
           
void wmf_ipa_bmp_setcolor 
           
          (  
          wmfAPI  *           API ,            
         
        
                    
          wmfBMP  *           bmp ,            
         
        
                    
          wmfRGB  *           rgb ,            
         
        
                    
          unsigned char           
           opacity ,            
         
        
                    
          unsigned int           
           x ,            
         
        
                    
          unsigned int           
           y            
         
        
          )  
                     
         
      
     
   
  
    
      
        
           
wmfRGB * wmf_ipa_color 
           
          (  
          wmfAPI  *           API ,            
         
        
                    
          unsigned long           
           index            
         
        
          )  
                     
         
      
     
   
  
    
      
        
           
void wmf_ipa_color_add 
           
          (  
          wmfAPI  *           API ,            
         
        
                    
          wmfRGB  *           rgb            
         
        
          )  
                     
         
      
     
   
  
    
      
        
           
unsigned long wmf_ipa_color_count 
           
          (  
          wmfAPI  *           API            
          )  
                     
         
      
     
   
  
    
      
        
           
unsigned long wmf_ipa_color_index 
           
          (  
          wmfAPI  *           API ,            
         
        
                    
          wmfRGB  *           rgb            
         
        
          )  
                     
         
      
     
   
  
    
      
        
           
void wmf_ipa_color_init 
           
          (  
          wmfAPI  *           API            
          )  
                     
         
      
     
   
  
    
      
        
           
void wmf_ipa_font_dir 
           
          (  
          wmfAPI  *           API ,            
         
        
                    
          char *           
           fontdir            
         
        
          )  
                     
         
      
     
   
  
    
      
        
           
char* wmf_ipa_font_lookup 
           
          (  
          wmfAPI  *           API ,            
         
        
                    
          char *           
           ps_name            
         
        
          )  
                     
         
      
     
   
  
    
       
     
    
This is the fun bit.
Parameters:  
API
  
the API handle  font
  
WMF font object: font's family  name , italics  flag, and the weight 
 
 
libwmf  requires fonts to have a postscript name, and maintains an internal cache of glyphs path and freetype  font face, keyed to postscript font name. Unfortunately, although the XML fontmaps do have font family  name , the GS fontmap does not. In the latter, therefore, matching WMF font info to postscript font name is hit-and-miss.     
 
   
  
    
      
        
           
void wmf_ipa_font_map_set 
           
          (  
          wmfAPI  *           API ,            
         
        
                    
          wmfMap            map            
         
        
          )  
                     
         
      
     
   
  
    
      
        
           
float wmf_ipa_font_stringwidth 
           
          (  
          wmfAPI  *           API ,            
         
        
                    
          wmfFont  *           font ,            
         
        
                    
          char *           
           str            
         
        
          )  
                     
         
      
     
   
  
    
       
     
    
The color black.
Parameters:  
 
Returns:   
Returns wmf_black   
   
  
    
      
        
           
wmfRGB  wmf_rgb_color 
           
          (  
          wmfAPI  *           API ,            
         
        
                    
          float           
           red ,            
         
        
                    
          float           
           green ,            
         
        
                    
          float           
           blue            
         
        
          )  
                     
         
      
     
   
  
    
       
     
    
Create a color with specified fractions of red, green and blue.
Parameters:  
API
  
the API handle  red
  
fraction (0 to 1 inclusive) of color red  green
  
fraction (0 to 1 inclusive) of color green  blue
  
fraction (0 to 1 inclusive) of color blue
 
 wmf_rgb_color  (API,1,1,1) returns wmf_white 
wmf_rgb_color  (API,0,0,0) returns wmf_black 
Returns:   
Returns the color.   
   
  
    
       
     
    
The color white.
Parameters:  
 
Returns:   
Returns wmf_white   
   
Generated at Sun Oct 28 12:22:55 2001 for libwmf by
 1.2.9.1 written by Dimitri van Heesch ,
 © 1997-2001