aboutsummaryrefslogtreecommitdiff
path: root/DPIFF.H
diff options
context:
space:
mode:
authorDavid Hulsman <davidhulsmannl@gmail.com>2019-07-05 15:46:03 +0200
committerDavid Hulsman <davidhulsmannl@gmail.com>2019-07-05 15:46:03 +0200
commitc7f4deb533625b9558ba787cd30cedb250ae5fc3 (patch)
tree253364c03bc0375a8e7e5651d78bf0259dbd8775 /DPIFF.H
parent8ae175b75a68701560fb8d1f378cc1a0514a0a01 (diff)
downloadDeluxePaint-c7f4deb533625b9558ba787cd30cedb250ae5fc3.tar.gz
DeluxePaint-c7f4deb533625b9558ba787cd30cedb250ae5fc3.tar.bz2
DeluxePaint-c7f4deb533625b9558ba787cd30cedb250ae5fc3.zip
add original source
Diffstat (limited to 'DPIFF.H')
-rw-r--r--DPIFF.H44
1 files changed, 44 insertions, 0 deletions
diff --git a/DPIFF.H b/DPIFF.H
new file mode 100644
index 0000000..614558d
--- /dev/null
+++ b/DPIFF.H
@@ -0,0 +1,44 @@
+/** dpiff.h ******************************************************************/
+/* */
+/* DPAINT IFF file I/O procedures */
+/* */
+/*****************************************************************************/
+#ifndef DPIFF_H
+#define DPIFF_H
+
+#include "iff\ilbm.h"
+
+#define BAD_FIT -9
+
+extern IFFP IffErr(); /* returns an IFFP error code; see IFF.H */
+
+/* FLAGS */
+#define MBM_HAS_GRAB 1
+#define MBM_HAS_PUSE 2
+#define MBM_HAS_CMAP 4
+#define MBM_HAS_RANGES 8
+
+/* Range id */
+#define ID_CRNG MakeID('C','R','N','G')
+
+typedef BOOL (*ResizeProc)();
+
+typedef struct {
+ LONG flags;
+ struct BitMap *bitmap;
+ SHORT w; /* pixel width of bitmap */
+ UBYTE xAspect, yAspect;
+ Masking masking;
+ UBYTE *mask;
+ UBYTE xpcolor;
+ Point2D pos;
+ Point2D grab;
+ Range *ranges;
+ SHORT nRange;
+ } MaskBM;
+
+extern BOOL PutMaskBM(LONG, MaskBM *, WORD *, BYTE *, LONG);
+/* file, maskBM, colorMap, buffer, bufsize */
+
+extern BOOL GetMaskBM(LONG, MaskBM *, WORD *, ResizeProc, BYTE *,LONG );
+/* file maskBM colorMap reSize() buffer bufsize */