gsropc.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
  2. This file is part of AFPL Ghostscript.
  3. AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author or
  4. distributor accepts any responsibility for the consequences of using it, or
  5. for whether it serves any particular purpose or works at all, unless he or
  6. she says so in writing. Refer to the Aladdin Free Public License (the
  7. "License") for full details.
  8. Every copy of AFPL Ghostscript must include a copy of the License, normally
  9. in a plain ASCII text file named PUBLIC. The License grants you the right
  10. to copy, modify and redistribute AFPL Ghostscript, but only under certain
  11. conditions described in the License. Among other things, the License
  12. requires that the copyright notice and this notice be preserved on all
  13. copies.
  14. */
  15. /*$Id: gsropc.h,v 1.2 2000/09/19 19:00:32 lpd Exp $ */
  16. /* RasterOp-compositing interface */
  17. #ifndef gsropc_INCLUDED
  18. # define gsropc_INCLUDED
  19. #include "gscompt.h"
  20. #include "gsropt.h"
  21. /*
  22. * Define parameters for RasterOp-compositing.
  23. * There are two kinds of RasterOp compositing operations.
  24. * If texture == 0, the input data are the texture, and the source is
  25. * implicitly all 0 (black). If texture != 0, it defines the texture,
  26. * and the input data are the source. Note that in the latter case,
  27. * the client (the caller of gs_create_composite_rop) promises that
  28. * *texture will not change.
  29. */
  30. #ifndef gx_device_color_DEFINED
  31. # define gx_device_color_DEFINED
  32. typedef struct gx_device_color_s gx_device_color;
  33. #endif
  34. typedef struct gs_composite_rop_params_s {
  35. gs_logical_operation_t log_op;
  36. const gx_device_color *texture;
  37. } gs_composite_rop_params_t;
  38. /* Create a RasterOp-compositing object. */
  39. int gs_create_composite_rop(P3(gs_composite_t ** ppcte,
  40. const gs_composite_rop_params_t * params,
  41. gs_memory_t * mem));
  42. #endif /* gsropc_INCLUDED */