Lines Matching refs:pSource
308 FX_BOOL CFX_PSRenderer::SetDIBits(const CFX_DIBSource* pSource, FX_DWORD color, int left, int top,
312 CFX_AffineMatrix matrix((FX_FLOAT)(pSource->GetWidth()), 0.0f, 0.0f, -(FX_FLOAT)(pSource->GetHeight()),
313 (FX_FLOAT)(left), (FX_FLOAT)(top + pSource->GetHeight()));
314 return DrawDIBits(pSource, color, &matrix, 0, alpha_flag, pIccTransform);
316 FX_BOOL CFX_PSRenderer::StretchDIBits(const CFX_DIBSource* pSource, FX_DWORD color, int dest_left, int dest_top,
323 return DrawDIBits(pSource, color, &matrix, flags, alpha_flag, pIccTransform);
325 FX_BOOL CFX_PSRenderer::DrawDIBits(const CFX_DIBSource* pSource, FX_DWORD color,
333 if (pSource->HasAlpha()) {
337 if (pSource->IsAlphaMask() && (alpha < 255 || pSource->GetBPP() != 1)) {
345 int width = pSource->GetWidth();
346 int height = pSource->GetHeight();
348 if (pSource->GetBPP() == 1 && pSource->GetPalette() == NULL) {
356 FX_LPCBYTE src_scan = pSource->GetScanline(row);
362 if (pSource->IsAlphaMask()) {
374 if (pSource->IsAlphaMask()) {
383 CFX_DIBSource* pConverted = (CFX_DIBSource*)pSource;
386 pConverted = pSource->CloneConvert(format, NULL, pIccTransform);
388 switch (pSource->GetFormat()) {
391 pConverted = pSource->CloneConvert(FXDIB_Rgb);
394 if (pSource->GetPalette() != NULL) {
395 pConverted = pSource->CloneConvert(FXDIB_Rgb);
399 pConverted = pSource->CloneConvert(FXDIB_Cmyk);
402 if (pSource->GetPalette() != NULL) {
403 pConverted = pSource->CloneConvert(FXDIB_Cmyk);
429 if (pConverted != pSource) {
458 if (pConverted != pSource) {