Imagetyp.h 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. ////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 2016 RWS Inc, All Rights Reserved
  4. //
  5. // This program is free software; you can redistribute it and/or modify
  6. // it under the terms of version 2 of the GNU General Public License as published by
  7. // the Free Software Foundation
  8. //
  9. // This program is distributed in the hope that it will be useful,
  10. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. // GNU General Public License for more details.
  13. //
  14. // You should have received a copy of the GNU General Public License along
  15. // with this program; if not, write to the Free Software Foundation, Inc.,
  16. // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  17. //
  18. //////////////////////////////////////////////////////////////////////
  19. //
  20. // IMAGETYP.H
  21. //
  22. // Created on 09/28/95 BRH
  23. // Implemented on 09/28/95 BRH
  24. //
  25. // 09/28/95 BRH Started this file with the defines for the standard
  26. // types of images and palettes.
  27. //
  28. // 03/06/96 JMI Added FLX8_888 and PFLX enums.
  29. //
  30. // 07/22/96 JMI Added BMP8RLE enum.
  31. //
  32. // 08/01/96 BRH Added static array of image type names for use
  33. // in utilities. For example, it will be used in
  34. // the AnimCreate utility to initialize a listbox of
  35. // image type names from which the user can select
  36. // a destination type for the images.
  37. //
  38. // 09/04/96 JMI Added BMP1, monochrome bitmap. No palette
  39. // (1 == Black, 0 == White).
  40. //
  41. // 10/30/96 JMI Removed all the cool stuff from this file and
  42. // put it in pal.h, pal.cpp, image.h, & image.cpp.
  43. // Although it is a bit more clumsy to add types
  44. // in that everything is not all in one place any-
  45. // more, these things are now more strictly
  46. // associated with CPal and CImage. Also, by moving
  47. // the astrImageTypeNames to w/i CImage, there is
  48. // now only one copy of that array (ms_astrTypeNames).
  49. // Before, there was an individual static copy of
  50. // the array for every module that included it
  51. // (whether included directly or indirectly through
  52. // image.h and/or rspix.h).
  53. //
  54. // 10/30/96 JMI Added a message indicating this was obsoleted as it doesn't
  55. // do anything anymore.
  56. //
  57. // This file contains the registered CImage types that are currently
  58. // supported. Any new image type can be added to this file by
  59. // checking it out and adding a define for the type and adding
  60. // a conversion function to the array. Your conversion function
  61. // needs to be able to convert from one of the standard types to
  62. // your new type. You may choose also to provide a reverse
  63. // conversion function to convert from your type to one of the
  64. // standard types.
  65. //
  66. //////////////////////////////////////////////////////////////////////
  67. // This header is no longer used.
  68. #pragma message ( __FILE__ "(" __LINE__ ") : Do not include this header." )
  69. #ifndef IMAGETYP_H
  70. #define IMAGETYP_H
  71. #include "System.h"
  72. // If PATHS_IN_INCLUDES macro is defined, we can utilized relative
  73. // paths to a header file. In this case we generally go off of our
  74. // RSPiX root directory. System.h MUST be included before this macro
  75. // is evaluated. System.h is the header that, based on the current
  76. // platform (or more so in this case on the compiler), defines
  77. // PATHS_IN_INCLUDES. Blue.h includes system.h so you can include that
  78. // instead.
  79. // Green include files
  80. #ifdef PATHS_IN_INCLUDES
  81. #include "GREEN/Image/Image.h"
  82. #include "GREEN/Image/imagecon.h"
  83. #else
  84. #include "Image.h"
  85. #include "imagecon.h"
  86. #endif // PATHS_IN_INCLUDES
  87. // This is kind of a sux, but the difference between a "to" and
  88. // a "from" is that the "to" arrays are correctly sized and the
  89. // "from" arrays contain one additional unused element. There
  90. // must be at least one thing different between the from and the
  91. // to CDynaLinks. Since the function typedefs and the friends
  92. // were the same, the only options left were to either store them
  93. // in the same array or do this.
  94. #define MAX_IMAGE_TOCONVERTORS (END_OF_TYPES)
  95. #define MAX_IMAGE_FROMCONVERTORS (END_OF_TYPES + 1)
  96. #endif //IMAGETYP_H