/******************************************************************************************** > virtual BOOL GDrawBorrower::Initialise( GRenderRegion* pActiveRR, double ResFactor, DocRect AreaOfDocumentToRender, UINT32 bpp, BOOL NeedsTransp ) Author: Ilan_Copelyn (Xara Group Ltd) <*****@*****.**> Created: 5/06/2000 Purpose: Puts pActiveRR into offscreen rendering state SeeAlso: ********************************************************************************************/ BOOL GDrawBorrower::Initialise( GRenderRegion* pActiveRR, double ResFactor, DocRect AreaOfDocumentToRender, UINT32 bpp, BOOL NeedsTransp ) { ERROR2IF(!(bpp==32),FALSE,"Can only do 32bpp offscreen bmps at present."); Capture* pCapture = m_pBorrowedRR->StartCapture(this, AreaOfDocumentToRender, CAPTUREINFO(ctNESTABLE, cfNONE), NeedsTransp, FALSE); return (pCapture!=NULL); }
Capture::Capture() { m_pOwner = NULL; m_pDirectBitmapSupplier = NULL; m_pClipRegionAttrValue = NULL; CaptureRect = DocRect(0,0,0,0); lpBitmapInfo = NULL; lpBits = NULL; CaptureMatrix = Matrix(); pColContext = NULL; info = CAPTUREINFO(ctDISABLED, cfNONE); dPixelsPerInch = 96; // m_ClipRegionMap.InitHashTable(17, FALSE); }