Pixmap.cpp 534 B

12345678910111213141516
  1. #include "Pixmap.h"
  2. #pragma unmanaged
  3. DLLEXP fz_pixmap* NewPixmapWithBBox(fz_context* ctx, fz_colorspace* colorspace, fz_irect bbox, fz_separations* seps, int alpha) {
  4. fz_pixmap* r;
  5. MuTryReturn(ctx, fz_new_pixmap_with_bbox(ctx, colorspace, bbox, seps, alpha), r);
  6. }
  7. DLLEXP int TintPixmap(fz_context* ctx, fz_pixmap* pixmap, int black, int white) {
  8. MuTry(ctx, fz_tint_pixmap(ctx, pixmap, black, white));
  9. }
  10. #pragma managed
  11. bool MuPDF::Pixmap::Tint(int black, int white) {
  12. return TintPixmap(Context::Ptr, _pixmap, black, white);
  13. }