magick_wand.pas 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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 MagickWand API.
  13. }
  14. {
  15. Based on ImageMagick 6.2
  16. Converted from c by: Felipe Monteiro de Carvalho Dez/2005
  17. Bug-fixed by Ángel Eduardo García Hernández
  18. Thanks to Marc Geldon and RuBBeR
  19. }
  20. {Version 0.4}
  21. unit magick_wand;
  22. {$IFDEF FPC}
  23. {$mode objfpc}
  24. {$PACKRECORDS C}
  25. {$ENDIF}
  26. {$PACKENUM 4}
  27. interface
  28. uses ImageMagick, ctypes;
  29. { Various types }
  30. type
  31. MagickWand = record
  32. id: culong;
  33. name: array[1..MaxTextExtent] of Char;
  34. exception: ExceptionInfo;
  35. image_info: PImageInfo;
  36. quantize_info: PQuantizeInfo;
  37. images: PImage;
  38. active, pend, debug: MagickBooleanType;
  39. signature: culong;
  40. end;
  41. PMagickWand = ^MagickWand;
  42. {$include pixel_wand.inc}
  43. {$include drawing_wand.inc}
  44. {$include magick_attribute.inc}
  45. {$include magick_image.inc}
  46. {$include pixel_iterator.inc}
  47. function IsMagickWand(const wand: PMagickWand): MagickBooleanType; cdecl; external WandExport;
  48. function MagickClearException(wand: PMagickWand): MagickBooleanType; cdecl; external WandExport;
  49. function CloneMagickWand(const wand: PMagickWand): PMagickWand; cdecl; external WandExport;
  50. function DestroyMagickWand(wand: PMagickWand): PMagickWand; cdecl; external WandExport;
  51. function NewMagickWand: PMagickWand; cdecl; external WandExport;
  52. procedure ClearMagickWand(wand: PMagickWand); cdecl; external WandExport;
  53. procedure MagickWandGenesis; cdecl; external WandExport;
  54. procedure MagickWandTerminus; cdecl; external WandExport;
  55. function MagickRelinquishMemory(resource: Pointer): Pointer; cdecl; external WandExport;
  56. procedure MagickResetIterator(wand: PMagickWand); cdecl; external WandExport;
  57. procedure MagickSetFirstIterator(wand: PMagickWand); cdecl; external WandExport;
  58. procedure MagickSetLastIterator(wand: PMagickWand); cdecl; external WandExport;
  59. implementation
  60. end.