quantize.inc 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 quantization methods.
  13. }
  14. type
  15. QuantizeInfo = record
  16. number_colors: Cardinal;
  17. tree_depth: Cardinal;
  18. dither: MagickBooleanType;
  19. colorspace: ColorspaceType;
  20. measure_error: MagickBooleanType;
  21. signature: Cardinal;
  22. end;
  23. PQuantizeInfo = ^QuantizeInfo;
  24. {extern MagickExport MagickBooleanType
  25. GetImageQuantizeError(Image *),
  26. MapImage(Image *,const Image *,const MagickBooleanType),
  27. MapImages(Image *,const Image *,const MagickBooleanType),
  28. OrderedDitherImage(Image *),
  29. PosterizeImage(Image *,const unsigned long,const MagickBooleanType),
  30. QuantizeImage(const QuantizeInfo *,Image *),
  31. QuantizeImages(const QuantizeInfo *,Image *);
  32. extern MagickExport QuantizeInfo
  33. *CloneQuantizeInfo(const QuantizeInfo *),
  34. *DestroyQuantizeInfo(QuantizeInfo *);
  35. extern MagickExport void
  36. CompressImageColormap(Image *),
  37. GetQuantizeInfo(QuantizeInfo *);}