pixel.inc 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. {
  2. Copyright 1999-2005 ImageMagick Studio LLC, a non-profit organization
  3. dedicated to making software imaging solutions freely available.
  4. You may not use this file except in compliance with the License.
  5. obtain a copy of the License at
  6. http://www.imagemagick.org/script/license.php
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. ImageMagick image constitute methods.
  13. }
  14. //#include <magick/constitute.h>
  15. type
  16. QuantumType = (
  17. UndefinedQuantum,
  18. AlphaQuantum,
  19. BlackQuantum,
  20. BlueQuantum,
  21. CMYKAQuantum,
  22. CMYKQuantum,
  23. CyanQuantum,
  24. GrayAlphaQuantum,
  25. GrayQuantum,
  26. GreenQuantum,
  27. IndexAlphaQuantum,
  28. IndexQuantum,
  29. MagentaQuantum,
  30. OpacityQuantum,
  31. RedQuantum,
  32. RGBAQuantum,
  33. RGBOQuantum,
  34. RGBQuantum,
  35. YellowQuantum,
  36. GrayPadQuantum,
  37. RGBPadQuantum
  38. );
  39. type
  40. LongPixelPacket = record
  41. red,
  42. green,
  43. blue,
  44. opacity,
  45. index: Cardinal;
  46. end;
  47. type
  48. MagickPixelPacket = record
  49. colorspace: ColorspaceType;
  50. matte: MagickBooleanType;
  51. fuzz: double;
  52. depth: Cardinal;
  53. red,
  54. green,
  55. blue,
  56. opacity,
  57. index: MagickRealType;
  58. end;
  59. PMagickPixelPacket = ^MagickPixelPacket;
  60. {extern MagickExport MagickBooleanType
  61. ExportImagePixels(const Image *,const long,const long,const unsigned long,
  62. const unsigned long,const char *,const StorageType,void *,ExceptionInfo *),
  63. ExportQuantumPixels(Image *,const QuantumType,const size_t,
  64. const unsigned char *),
  65. ImportImagePixels(Image *,const long,const long,const unsigned long,
  66. const unsigned long,const char *,const StorageType,const void *),
  67. ImportQuantumPixels(Image *,const QuantumType,const size_t,unsigned char *);}