Merging NList MCC 0.119 into the main branch.
[AROS.git] / workbench / classes / zune / nlist / nbitmap_mcc / DitherImage.h
blob61df7476260de6d729d7c183cda9ffd4ac1c2a63
1 /***************************************************************************
3 NBitmap.mcc - New Bitmap MUI Custom Class
4 Copyright (C) 2006 by Daniel Allsopp
5 Copyright (C) 2007-2013 by NList Open Source Team
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or (at your option) any later version.
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
17 NList classes Support Site: http://www.sf.net/projects/nlist-classes
19 $Id$
21 ***************************************************************************/
23 #ifndef DITHERIMAGE_H
24 #define DITHERIMAGE_H 1
26 #ifndef EXEC_TYPES_H
27 #include <exec/types.h>
28 #endif
29 #ifndef UTILITY_TAGITEM_H
30 #include <utility/tagitem.h>
31 #endif
33 APTR DitherImageA(CONST_APTR data, struct TagItem *tags);
34 #if !defined(__AROS__) && defined(__PPC__)
35 #define DitherImage(data, ...) ({ ULONG _tags[] = { __VA_ARGS__ }; DitherImageA(data, (struct TagItem *)_tags); })
36 #else
37 #ifdef __AROS__
38 APTR STDARGS VARARGS68K DitherImage(CONST_APTR data, Tag tag1, ...);
39 #else
40 APTR STDARGS VARARGS68K DitherImage(CONST_APTR data, ...);
41 #endif
42 #endif
43 void FreeDitheredImage(APTR image, APTR mask);
45 #define DITHERA_Width (TAG_USER+2)
46 #define DITHERA_Height (TAG_USER+3)
47 #define DITHERA_Format (TAG_USER+4)
48 #define DITHERA_ColorMap (TAG_USER+5)
49 #define DITHERA_PenMap (TAG_USER+6)
50 #define DITHERA_MaskPlane (TAG_USER+7)
52 #endif /* DITHERIMAGE_H */