Lines Matching refs:pixel
19 unsigned long pixel));
58 * Get a single pixel from an image.
61 * Returns the 32 bit pixel value.
74 unsigned long pixel = 0;
81 pixel = RGB(srcPtr[2], srcPtr[1], srcPtr[0]);
84 pixel = RGB(((((WORD*)srcPtr)[0]) >> 7) & 0xf8,
89 pixel = srcPtr[0];
92 pixel = ((x%2) ? (*srcPtr) : ((*srcPtr) >> 4)) & 0x0f;
95 pixel = ((*srcPtr) & (0x80 >> (x%8))) ? 1 : 0;
98 return pixel;
107 * Set a single pixel in an image.
119 PutPixel(image, x, y, pixel)
122 unsigned long pixel;
139 destPtr[0] = (unsigned char) GetBValue(pixel);
140 destPtr[1] = (unsigned char) GetGValue(pixel);
141 destPtr[2] = (unsigned char) GetRValue(pixel);
149 ((GetRValue(pixel) & 0xf8) << 7)
150 | ((GetGValue(pixel) & 0xf8) <<2)
151 | ((GetBValue(pixel) & 0xf8) >> 3);
158 (*destPtr) = (unsigned char) pixel;
166 | (pixel & 0x0f));
169 | ((pixel << 4) & 0xf0));
178 if (pixel) {
591 COLORREF pixel;
603 pixel = GetPixel(dc, x+(int)xx, y+(int)yy);
604 if (pixel == CLR_INVALID) {
607 PutPixel(imagePtr, xx, yy, pixel);