Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xmrendertableaddrenditions(3) [centos man page]

XmRenderTableAddRenditions(library call)								  XmRenderTableAddRenditions(library call)

NAME
XmRenderTableAddRenditions -- Creates a new render table SYNOPSIS
#include <Xm/Xm.h> XmRenderTable XmRenderTableAddRenditions( XmRenderTable oldtable, XmRendition *renditions, Cardinal rendition_count, XmMergeMode merge_mode); DESCRIPTION
XmRenderTableAddRenditions is a function to create a new render table that includes the renditions listed in oldtable, if there is one. This function also copies specified renditions (renditions) to the new render table. The first rendition_count renditions of the renditions array are added to the new table. If a rendition is tagged with a tag that matches a tag already in oldtable, then the existing rendition using that tag is either modified or freed and replaced with the new rendition, depending on the value of merge_mode. If oldtable is NULL, XmRenderTableAddRenditions creates a new render table containing only the specified renditions. This function deallocates the original render table after extracting the required information. It is the responsibility of the caller to free the renditions of the renditions array by calling the XmRenditionFree function. oldtable Specifies the render table to be added to. renditions Specifies an array of renditions to be added. rendition_count Specifies the number of renditions from renditions to be added. merge_mode Specifies what to do if the XmNtag of a rendition matches that of one that already exists in oldtable. The possible values are as follows: XmMERGE_REPLACE Completely replaces the old rendition with the new one. XmMERGE_OLD Replaces any unspecified values of the old rendition with the corresponding values from the new rendition. XmMERGE_NEW Replaces the old rendition with the new rendition, replacing any unspecified values of the new rendition with the cor- responding values from the old rendition. XmSKIP Skips over the new rendition, leaving the old rendition intact. RETURN
If renditions is NULL or rendition_count is 0 (zero), this function returns oldtable. Otherwise, the function returns a new XmRenderTable. The function allocates space to hold this new render table. The application is responsible for managing this allocated space. The appli- cation can recover the allocated space by calling XmRenderTableFree. RELATED
XmRendition(3) and XmRenderTableFree(3). XmRenderTableAddRenditions(library call)

Check Out this Related Man Page

palmtopnm(1)						      General Commands Manual						      palmtopnm(1)

NAME
palmtopnm - convert a Palm pixmap into a portable anymap SYNOPSIS
palmtopnm [-verbose] [-rendition N] [-showhist] [-forceplain] [pnmfile] palmtopnm -transparent [-verbose] [pnmfile] DESCRIPTION
Reads a Palm pixmap as input, from stdin or pnmfile. Produces either a portable pixmap as output, or writes the value of the transparent color in the Palm pixmap to stdout. OPTIONS
-verbose Display various interesting information about the input file and process. -transparent If the Palm pixmap has a transparent color set, the RGB value for that color will be written to stdout as in the form #RRGGBB, where RR, GG, and BB are two-digit hexadecimal numbers indicating a value between 0 and 255. If no transparent color is set in the bit- map, nothing will be output. No additional output will be generated; no anymap will be output. -rendition N Palm pixmaps may contain several different renditions of the same pixmap, with different depths. By default, palmtopnm operates on the first rendition (rendition number 1) in the pixmap. This switch allows you to operate on a different rendition. The value must be between 1 and the number of renditions in the pixmap, inclusive. -showhist Writes a histogram of colors in the input file to stderr. -forceplain Force the output anymap to be in ASCII 'plain' netpbm format. SEE ALSO
pnmtopalm(1), pnm(5) BUGS
An additional compression format, "packbits," has been added with PalmOS 4.0. This package should be updated to handle it. You currently cannot generate an alpha mask if the Palm pixmap has a transparent color. However, you can still do this with ppmcolormask with a Netpbm pipe similar to: palmtopnm pixmap.palm | ppmcolormask `palmtopnm -transparent pixmap.palm` AUTHORS
This program was originally written as Tbmptopnm.c, by Ian Goldberg. It was heavily modified by Bill Janssen to add color, compression, and transparency function. Copyright 1995-2001 by Ian Goldberg and Bill Janssen. 15 December 2000 palmtopnm(1)
Man Page