summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfmx/src/pdfcolor.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/dvipdfmx/src/pdfcolor.h')
-rw-r--r--Build/source/texk/dvipdfmx/src/pdfcolor.h26
1 files changed, 16 insertions, 10 deletions
diff --git a/Build/source/texk/dvipdfmx/src/pdfcolor.h b/Build/source/texk/dvipdfmx/src/pdfcolor.h
index 769d7e52a5c..6cbc8eeadce 100644
--- a/Build/source/texk/dvipdfmx/src/pdfcolor.h
+++ b/Build/source/texk/dvipdfmx/src/pdfcolor.h
@@ -1,4 +1,4 @@
-/* $Header: /home/cvsroot/dvipdfmx/src/pdfcolor.h,v 1.8 2007/11/22 11:45:39 chofchof Exp $
+/* $Header: /home/cvsroot/dvipdfmx/src/pdfcolor.h,v 1.11 2008/12/11 16:03:04 matthias Exp $
This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks.
@@ -51,15 +51,24 @@ typedef struct
extern void pdf_color_set_verbose (void);
+extern int pdf_color_type (const pdf_color *color);
extern int pdf_color_rgbcolor (pdf_color *color,
double r, double g, double b);
extern int pdf_color_cmykcolor (pdf_color *color,
double c, double m, double y, double k);
extern int pdf_color_graycolor (pdf_color *color, double g);
+#define pdf_color_black(c) pdf_color_graycolor(c, 0.0);
+#define pdf_color_white(c) pdf_color_graycolor(c, 1.0);
+
extern void pdf_color_copycolor (pdf_color *color1, const pdf_color *color2);
+extern void pdf_color_brighten_color (pdf_color *dst, const pdf_color *src, double f);
+
+extern int pdf_color_compare (const pdf_color *color1, const pdf_color *color2);
+
+extern int pdf_color_is_white (const pdf_color *color);
+extern int pdf_color_is_valid (const pdf_color *color);
-extern int pdf_color_is_white (pdf_color *color);
-extern int pdf_color_is_valid (pdf_color *color);
+extern int pdf_color_to_string (const pdf_color *color, char *buffer);
/* Not check size */
extern pdf_obj *iccp_get_rendering_intent (const void *profile, long proflen);
@@ -74,26 +83,23 @@ extern void pdf_init_colors (void);
extern void pdf_close_colors (void);
extern pdf_obj *pdf_get_colorspace_reference (int cspc_id);
+#if 0
extern int pdf_get_colorspace_num_components (int cspc_id);
extern int pdf_get_colorspace_subtype (int cspc_id);
/* Not working */
extern int pdf_colorspace_load_ICCBased (const char *ident,
const char *profile_filename);
+#endif
-/* Color special
+/* Color specials & color stack
* See remark in spc_color.c.
*/
-extern void pdf_color_set_default (const pdf_color *color);
+extern void pdf_color_set (pdf_color *sc, pdf_color *fc);
extern void pdf_color_push (pdf_color *sc, pdf_color *fc);
extern void pdf_color_pop (void);
-/* Color stack
- */
extern void pdf_color_clear_stack (void);
extern void pdf_color_get_current (pdf_color **sc, pdf_color **fc);
-/* Reinstall color */
-extern void pdf_dev_preserve_color(void);
-
#endif /* _PDF_COLOR_H_ */