Skip to content

Commit e7015a0

Browse files
committed
(#8) Removed color info code
1 parent 7529ac0 commit e7015a0

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

src/MMBitmap.h

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -52,34 +52,6 @@ MMBitmapRef copyMMBitmapFromPortion(MMBitmapRef source, MMRect rect);
5252

5353
#define MMBitmapGetBounds(image) MMRectMake(0, 0, image->width, image->height)
5454

55-
/* Get pointer to pixel of MMBitmapRef. No bounds checking is performed (check
56-
* yourself before calling this with MMBitmapPointInBounds(). */
57-
#define MMRGBColorRefAtPoint(image, x, y) \
58-
(MMRGBColor *)(assert(MMBitmapPointInBounds(bitmap, MMPointMake(x, y))), \
59-
((image)->imageBuffer) + (((image)->bytewidth * (y)) \
60-
+ ((x) * (image)->bytesPerPixel)))
61-
62-
/* Dereference pixel of MMBitmapRef. Again, no bounds checking is performed. */
63-
#define MMRGBColorAtPoint(image, x, y) *MMRGBColorRefAtPoint(image, x, y)
64-
65-
/* Hex/integer value of color at point. */
66-
#define MMRGBHexAtPoint(image, x, y) \
67-
hexFromMMRGB(MMRGBColorAtPoint(image, x, y))
68-
69-
/* Increment either point.x or point.y depending on the position of point.x.
70-
* That is, if x + 1 is >= width, increment y and start x at the beginning.
71-
* Otherwise, increment x.
72-
*
73-
* This is used as a convenience macro to scan rows when calling functions such
74-
* as findColorInRectAt() and findBitmapInBitmapAt(). */
75-
#define ITER_NEXT_POINT(pixel, width, start_x) \
76-
do { \
77-
if (++(pixel).x >= (width)) { \
78-
(pixel).x = start_x; \
79-
++(point).y; \
80-
} \
81-
} while (0);
82-
8355
#ifdef __cplusplus
8456
}
8557
#endif

0 commit comments

Comments
 (0)