Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
1.6 KiB

  1. /**************************************************************************\
  2. *
  3. * Copyright (c) 2000, Microsoft Corp. All Rights Reserved.
  4. *
  5. * Module Name:
  6. *
  7. * GdiplusImageCodec.h
  8. *
  9. * Abstract:
  10. *
  11. * APIs for imaging codecs.
  12. *
  13. * Revision History:
  14. *
  15. * 12/21/1999 dchinn
  16. * Created it.
  17. *
  18. \**************************************************************************/
  19. #ifndef _GDIPLUSIMAGECODEC_H
  20. #define _GDIPLUSIMAGECODEC_H
  21. //--------------------------------------------------------------------------
  22. // Codec Management APIs
  23. //--------------------------------------------------------------------------
  24. inline Status
  25. GetImageDecodersSize(
  26. OUT UINT *numDecoders,
  27. OUT UINT *size)
  28. {
  29. return DllExports::GdipGetImageDecodersSize(numDecoders, size);
  30. }
  31. inline Status
  32. GetImageDecoders(
  33. IN UINT numDecoders,
  34. IN UINT size,
  35. OUT ImageCodecInfo *decoders)
  36. {
  37. return DllExports::GdipGetImageDecoders(numDecoders, size, decoders);
  38. }
  39. inline Status
  40. GetImageEncodersSize(
  41. OUT UINT *numEncoders,
  42. OUT UINT *size)
  43. {
  44. return DllExports::GdipGetImageEncodersSize(numEncoders, size);
  45. }
  46. inline Status
  47. GetImageEncoders(
  48. IN UINT numEncoders,
  49. IN UINT size,
  50. OUT ImageCodecInfo *encoders)
  51. {
  52. return DllExports::GdipGetImageEncoders(numEncoders, size, encoders);
  53. }
  54. inline Status
  55. AddImageCodec(
  56. IN const ImageCodecInfo* codec)
  57. {
  58. return DllExports::GdipAddImageCodec(codec);
  59. }
  60. inline Status
  61. RemoveImageCodec(
  62. IN const ImageCodecInfo* codec)
  63. {
  64. return DllExports::GdipRemoveImageCodec(codec);
  65. }
  66. #endif // _GDIPLUSIMAGECODEC_H