Lines Matching defs:bitmapInfo
33 #include <WebCore/BitmapInfo.h>
70 BITMAPINFO bitmapInfo = {0};
71 bitmapInfo.bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
72 GetDIBits(bitmapDC.get(), image, 0, 0, 0, &bitmapInfo, DIB_RGB_COLORS);
73 if (bitmapInfo.bmiHeader.biSizeImage <= 0)
74 bitmapInfo.bmiHeader.biSizeImage = bitmapInfo.bmiHeader.biWidth * abs(bitmapInfo.bmiHeader.biHeight) * (bitmapInfo.bmiHeader.biBitCount + 7) / 8;
76 RefPtr<SharedMemory> memoryBuffer = SharedMemory::create(bitmapInfo.bmiHeader.biSizeImage);
78 bitmapInfo.bmiHeader.biCompression = BI_RGB;
79 GetDIBits(bitmapDC.get(), image, 0, bitmapInfo.bmiHeader.biHeight, memoryBuffer->data(), &bitmapInfo, DIB_RGB_COLORS);
86 m_page->send(Messages::WebPageProxy::StartDragDrop(imageOrigin, dragPoint, okEffect, dragData.dragDataMap(), IntSize(bitmapInfo.bmiHeader.biWidth, bitmapInfo.bmiHeader.biHeight), handle, isLink), m_page->pageID());