Home | History | Annotate | Download | only in printing

Lines Matching refs:HDC

39 int CALLBACK IsAlphaBlendUsedEnumProc(HDC,
57 int CALLBACK RasterizeAlphaBlendProc(HDC metafile_dc,
62 HDC bitmap_dc = *reinterpret_cast<HDC*>(data);
138 HDC context() const {
157 bool DIBFormatNativelySupported(HDC dc, uint32 escape, const BYTE* bits,
213 bool Emf::Playback(HDC hdc, const RECT* rect) const {
221 return PlayEnhMetaFile(hdc, emf_, rect) != 0;
224 bool Emf::SafePlayback(HDC context) const {
303 int CALLBACK Emf::SafePlaybackProc(HDC hdc,
312 context->hdc = hdc;
329 return 0 != PlayEnhMetaFileRecord(context->hdc,
344 // function directly on the printer HDC is fine. Still, playing the EMF record
392 HDC hdc = context->hdc;
395 if (!DIBFormatNativelySupported(hdc, CHECKJPEGFORMAT, bits,
401 if (!DIBFormatNativelySupported(hdc, CHECKPNGFORMAT, bits,
421 res = (0 != StretchDIBits(hdc, sdib_record->xDest, sdib_record->yDest,
439 HDC hdc = context->hdc;
441 res = 0 != SetWorldTransform(hdc, base_matrix) &&
442 ModifyWorldTransform(hdc, xform, MWT_LEFTMULTIPLY);
444 res = 0 != SetWorldTransform(hdc, xform);
453 HDC hdc = context->hdc;
457 res = 0 != SetWorldTransform(hdc, base_matrix);
459 res = 0 != ModifyWorldTransform(hdc, xform, MWT_IDENTITY);
464 res = 0 != ModifyWorldTransform(hdc, xform, *option);
468 res = 0 != SetWorldTransform(hdc, base_matrix) &&
469 ModifyWorldTransform(hdc, xform, MWT_LEFTMULTIPLY);
471 res = 0 != SetWorldTransform(hdc, xform);
492 res = !!::StartPage(context->hdc);
494 context->dc_on_page_start = ::SaveDC(context->hdc);
497 ::RestoreDC(context->hdc, context->dc_on_page_start);
499 res = !!::EndPage(context->hdc);
552 Emf::Enumerator::Enumerator(const Emf& emf, HDC context, const RECT* rect) {
562 DCHECK_EQ(context_.hdc, context);
573 int CALLBACK Emf::Enumerator::EnhMetaFileProc(HDC hdc,
584 emf.context_.hdc = hdc;
588 DCHECK_EQ(emf.context_.hdc, hdc);
625 HDC hdc = result->context();
626 DCHECK(hdc);
627 skia::InitializeDC(hdc);
632 ::ModifyWorldTransform(hdc, NULL, MWT_IDENTITY);
639 ::SetWorldTransform(hdc, &xform);
640 ::BitBlt(hdc, 0, 0, bitmap_rect.width(), bitmap_rect.height(),
664 HDC hdc = result->context();
665 DCHECK(hdc);
666 skia::InitializeDC(hdc);
668 HDC bitmap_dc = bitmap.context();
670 ::EnumEnhMetaFile(hdc, emf(), &RasterizeAlphaBlendProc, &bitmap_dc, &rect);