| Name | Type | Default | Access |
|---|---|---|---|
| XmNbuildPixmap | Boolean | True | CSG |
| XmNcolormapFile | char * | NULL | CSG |
| XmNcolorRecord | XintColorRec * | NULL | CSG |
| XmNcolorScale | int | XintCOLOR_SCALE_NONE | CSG |
| XmNcolorScaleAnnotationList | char ** | NULL | CSG |
| XmNcolorScaleSize | int | 350 | CSG |
| XmNimage | XImage * | NULL | CSG |
| XmNimageBackground | Pixel | white | CSG |
| XmNimageForeground | Pixel | black | CSG |
| XmNinterpolatePixmap | Boolean | True | CSG |
| XmNpixmap | Pixmap | XmUNSPECIFIED_PIXMAP | CSG |
ncolors = 7
bias = 7 # optional field
contrast = 0 # optional field
0 0 0
10000 1870 5482
30942 20056 59035
1004 46003 900
10023 4938 5933
58332 800 35
65535 65535 65535
| Function Name | Description |
|---|---|
| XintImageColorRecordFree | Frees a color record structure that was allocated with function XintImageCreateColorRecord. |
| XintCreateImage | Creates an unmanaged Image widget. |
| XintImageCreateColorRecord | Creates a color record based upon a specified array of pixels. |
| XintImageCropPixmap | Returns the Pixmap ID of the portion of an image displayed by an Image widget. |
| XintImageEditColormap | Causes an EditColormap dialog to be created so that the end-user can edit the image's colormap. |
| XintImageGetColorRecord | Returns the color record used by the image widget. |
| XintImageInstallColormapFile | Causes a specified colormap file to be used to define a new color record for the image displayed. |
Boolean XintImageColorRecordFree(...)
| Widget | widget | Widget ID of the Image widget containing the color record to be freed . |
| XintColorRec * | color_record | Point s to the color record structure to be freed. |
This function returns False if the specified color record structure cannot be freed. Otherwise, it returns True.
Widget XintCreateImage (...)
| Widget | parent | Parent of the new Image widget. |
| char * | name | Name of the new Image widget. |
| ArgList | arglist | List of resource/value items. |
| Cardinal | argcount | Number of items in arglist. |
XintColorRec * XintImageCreateColorRecord (...)
| Pixel * | pixel_array | Points to an array of colors indicated by pixel value. |
| int | num_colors | Number of elements in the pixel array. |
Pixmap XintImageCropPixmap (...)
| Widget | widget | The Image widget of interest. |
| int * | x | X pixel coordinate of upper left hand vertex of the cropped image. |
| int * | y | Y pixel coordinate of upper left hand vertex of the cropped image. |
| int * | width | The width of the cropped image in pixels. |
| int * | height | The height of the cropped image in pixels. |
If there is no image currently displayed by the specified Image widget or if the specified area is invalid, then this function returns NULL.
Boolean XintImageEditColormap (Widget widget)
where widget is the widget ID of the widget containing the image whose colormap is to be edited.
If the color record of the Image widget is NULL, then this function will display an error message to the end-user and will return False to the application program.
XintColorRec *XintImageGetColorRecord (Widget widget)
where widget is the widget ID of the Image widget whose color record you wish to reference.
Boolean XintImageInstallColormapFile(...)
| Widget | widget | Widget ID of the Image widget containing the color record to be modified. |
| char * | filename | Specifies the name of a colormap file to be read. |
This function returns False if the specified colormap file cannot be read. Otherwise, it returns True.