Lines Matching refs:pixels
100 OwnArrayPtr<unsigned char> pixels = adoptArrayPtr(new unsigned char[totalBytes]);
101 if (!pixels)
104 // OpenGL keeps the pixels stored bottom up, so we need to flip the image here.
110 m_context->readRenderingResults(pixels.get(), totalBytes);
114 if (pixels[i + 3] != 255) {
115 pixels[i + 0] = min(255, pixels[i + 0] * pixels[i + 3] / 255);
116 pixels[i + 1] = min(255, pixels[i + 1] * pixels[i + 3] / 255);
117 pixels[i + 2] = min(255, pixels[i + 2] * pixels[i + 3] / 255);
121 const_cast<unsigned char*>(pixels.get()), CAIRO_FORMAT_ARGB32, width, height, width * 4));