@@ -52,34 +52,6 @@ MMBitmapRef copyMMBitmapFromPortion(MMBitmapRef source, MMRect rect);
52
52
53
53
#define MMBitmapGetBounds (image ) MMRectMake(0, 0, image->width, image->height)
54
54
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
-
83
55
#ifdef __cplusplus
84
56
}
85
57
#endif
0 commit comments