Home | History | Annotate | Download | only in win32

Lines Matching defs:pDIBitmap

138     CFX_DIBitmap* pDIBitmap = FX_NEW CFX_DIBitmap;

139 if (!pDIBitmap) {
143 if (!pDIBitmap->Create(width, height, FXDIB_Rgb)) {
144 delete pDIBitmap;
148 CFX_ByteString info = GetBitmapInfo(pDIBitmap);
149 int ret = GetDIBits(hDC, hBitmap, 0, height, pDIBitmap->GetBuffer(), (BITMAPINFO*)(FX_LPCSTR)info, DIB_RGB_COLORS);
151 if (pDIBitmap) {
152 delete pDIBitmap;
154 pDIBitmap = NULL;
157 return pDIBitmap;
174 CFX_DIBitmap* pDIBitmap = FX_NEW CFX_DIBitmap;
175 if (!pDIBitmap) {
179 if (!pDIBitmap->Create(width, height, FXDIB_Rgb)) {
180 delete pDIBitmap;
184 CFX_ByteString info = GetBitmapInfo(pDIBitmap);
185 int ret = GetDIBits(hDC, hBitmap, 0, height, pDIBitmap->GetBuffer(), (BITMAPINFO*)(FX_LPCSTR)info, DIB_RGB_COLORS);
187 if (pDIBitmap) {
188 delete pDIBitmap;
190 pDIBitmap = NULL;
193 return pDIBitmap;
209 CFX_DIBitmap* pDIBitmap = FX_NEW CFX_DIBitmap;
210 if (!pDIBitmap) {
221 delete pDIBitmap;
234 if (!pDIBitmap->Create(bmih.biWidth, height, bmih.biBitCount == 1 ? FXDIB_1bppRgb : FXDIB_8bppRgb)) {
235 delete pDIBitmap;
242 ret = GetDIBits(hDC, hBitmap, 0, height, pDIBitmap->GetBuffer(), (BITMAPINFO*)pbmih, DIB_RGB_COLORS);
245 pDIBitmap->CopyPalette(pPalette, palsize);
252 if (!pDIBitmap->Create(bmih.biWidth, height, bmih.biBitCount == 24 ? FXDIB_Rgb : FXDIB_Rgb32)) {
253 delete pDIBitmap;
259 ret = GetDIBits(hDC, hBitmap, 0, height, pDIBitmap->GetBuffer(), (BITMAPINFO*)&bmih, DIB_RGB_COLORS);
261 int pitch = pDIBitmap->GetPitch();
263 FX_BYTE* dest_scan = (FX_BYTE*)(pDIBitmap->GetBuffer() + row * pitch);
272 if (pDIBitmap) {
273 delete pDIBitmap;
275 pDIBitmap = NULL;
280 return pDIBitmap;