gsropc.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
  2. This software is provided AS-IS with no warranty, either express or
  3. implied.
  4. This software is distributed under license and may not be copied,
  5. modified or distributed except as expressly authorized under the terms
  6. of the license contained in the file LICENSE in this distribution.
  7. For more information about licensing, please refer to
  8. http://www.ghostscript.com/licensing/. For information on
  9. commercial licensing, go to http://www.artifex.com/licensing/ or
  10. contact Artifex Software, Inc., 101 Lucas Valley Road #110,
  11. San Rafael, CA 94903, U.S.A., +1(415)492-9861.
  12. */
  13. /* $Id: gsropc.h,v 1.5 2002/06/16 08:45:42 lpd Exp $ */
  14. /* RasterOp-compositing interface */
  15. #ifndef gsropc_INCLUDED
  16. # define gsropc_INCLUDED
  17. #include "gscompt.h"
  18. #include "gsropt.h"
  19. /*
  20. * Define parameters for RasterOp-compositing.
  21. * There are two kinds of RasterOp compositing operations.
  22. * If texture == 0, the input data are the texture, and the source is
  23. * implicitly all 0 (black). If texture != 0, it defines the texture,
  24. * and the input data are the source. Note that in the latter case,
  25. * the client (the caller of gs_create_composite_rop) promises that
  26. * *texture will not change.
  27. */
  28. #ifndef gx_device_color_DEFINED
  29. # define gx_device_color_DEFINED
  30. typedef struct gx_device_color_s gx_device_color;
  31. #endif
  32. typedef struct gs_composite_rop_params_s {
  33. gs_logical_operation_t log_op;
  34. const gx_device_color *texture;
  35. } gs_composite_rop_params_t;
  36. /* Create a RasterOp-compositing object. */
  37. int gs_create_composite_rop(gs_composite_t ** ppcte,
  38. const gs_composite_rop_params_t * params,
  39. gs_memory_t * mem);
  40. #endif /* gsropc_INCLUDED */