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
21 ***************************************************************************/
24 #define DITHERIMAGE_H 1
27 #include <exec/types.h>
29 #ifndef UTILITY_TAGITEM_H
30 #include <utility/tagitem.h>
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); })
38 APTR STDARGS VARARGS68K
DitherImage(CONST_APTR data
, Tag tag1
, ...);
40 APTR STDARGS VARARGS68K
DitherImage(CONST_APTR data
, ...);
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 */