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.
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);
148 (*(WORD*)destPtr) = ((GetRValue(pixel) & 0xf8) << 7)
149 | ((GetGValue(pixel) & 0xf8) <<2)
150 | ((GetBValue(pixel) & 0xf8) >> 3);
157 (*destPtr) = (unsigned char) pixel;
166 | (pixel & 0x0f));
169 | ((pixel << 4) & 0xf0));
179 if (pixel) {
618 COLORREF pixel;
630 pixel = GetPixel(dc, x+(int)xx, y+(int)yy);
631 if (pixel == CLR_INVALID) {
634 PutPixel(imagePtr, (int) xx, (int) yy, pixel);