hpdf_image.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. /*
  2. * << Haru Free PDF Library >> -- hpdf_image.h
  3. *
  4. * URL: http://libharu.org
  5. *
  6. * Copyright (c) 1999-2006 Takeshi Kanno <[email protected]>
  7. * Copyright (c) 2007-2009 Antony Dovgal <[email protected]>
  8. *
  9. * Permission to use, copy, modify, distribute and sell this software
  10. * and its documentation for any purpose is hereby granted without fee,
  11. * provided that the above copyright notice appear in all copies and
  12. * that both that copyright notice and this permission notice appear
  13. * in supporting documentation.
  14. * It is provided "as is" without express or implied warranty.
  15. *
  16. */
  17. #ifndef _HPDF_IMAGE_H
  18. #define _HPDF_IMAGE_H
  19. #include "hpdf_objects.h"
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. HPDF_Image
  24. HPDF_Image_Load1BitImageFromMem (HPDF_MMgr mmgr,
  25. const HPDF_BYTE *buf,
  26. HPDF_Xref xref,
  27. HPDF_UINT width,
  28. HPDF_UINT height,
  29. HPDF_UINT line_width,
  30. HPDF_BOOL top_is_first
  31. );
  32. #ifndef LIBHPDF_HAVE_NOPNGLIB
  33. HPDF_Image
  34. HPDF_Image_LoadPngImage (HPDF_MMgr mmgr,
  35. HPDF_Stream png_data,
  36. HPDF_Xref xref,
  37. HPDF_BOOL delayed_loading);
  38. #endif
  39. HPDF_Image
  40. HPDF_Image_LoadJpegImage (HPDF_MMgr mmgr,
  41. HPDF_Stream jpeg_data,
  42. HPDF_Xref xref);
  43. HPDF_Image
  44. HPDF_Image_LoadJpegImageFromMem (HPDF_MMgr mmgr,
  45. const HPDF_BYTE *buf,
  46. HPDF_UINT size,
  47. HPDF_Xref xref);
  48. HPDF_Image
  49. HPDF_Image_LoadRawImage (HPDF_MMgr mmgr,
  50. HPDF_Stream stream,
  51. HPDF_Xref xref,
  52. HPDF_UINT width,
  53. HPDF_UINT height,
  54. HPDF_ColorSpace color_space);
  55. HPDF_Image
  56. HPDF_Image_LoadRawImageFromMem (HPDF_MMgr mmgr,
  57. const HPDF_BYTE *buf,
  58. HPDF_Xref xref,
  59. HPDF_UINT width,
  60. HPDF_UINT height,
  61. HPDF_ColorSpace color_space,
  62. HPDF_UINT bits_per_component);
  63. HPDF_BOOL
  64. HPDF_Image_Validate (HPDF_Image image);
  65. HPDF_STATUS
  66. HPDF_Image_SetMask (HPDF_Image image,
  67. HPDF_BOOL mask);
  68. HPDF_STATUS
  69. HPDF_Image_SetColorSpace (HPDF_Image image,
  70. HPDF_Array colorspace);
  71. HPDF_STATUS
  72. HPDF_Image_SetRenderingIntent (HPDF_Image image,
  73. const char* intent);
  74. #ifdef __cplusplus
  75. }
  76. #endif /* __cplusplus */
  77. #endif /* _HPDF_XOBJECTS_H */