#include <rendbits.h>
Inheritance diagram for OSRenderBitmap:
Public Member Functions | |
OSRenderBitmap () | |
Static Public Member Functions | |
static RenderRegion * | Create (DocRect, Matrix, FIXED16, RenderType rType=RENDERTYPE_MONOBITMAP) |
Creates a region of type OSRenderBitmap (GDI) or GRenderClick (GDraw). Creates a region of type OSRenderBitmap (GDI) or GRenderClick (GDraw). | |
static BitmapContents | GetContents (RenderRegion *, BOOL) |
To investigate whether anything has been rendered into a bitmap-based render region. | |
static void | DebugMe (RenderRegion *, INT32) |
Dupms the current bitmap onto the current view window, so we can see what is going on. |
Definition at line 129 of file rendbits.h.
|
|
|
Creates a region of type OSRenderBitmap (GDI) or GRenderClick (GDraw). Creates a region of type OSRenderBitmap (GDI) or GRenderClick (GDraw).
Definition at line 171 of file rendbits.cpp. 00172 { 00173 switch (rType) 00174 { 00175 case RENDERTYPE_MONOBITMAP: 00176 // TRACE(_T("Creating MONOBITMAP region (%d, %d) - (%d, %d) GRenderClick\n"), Rect.lo.x, Rect.lo.y, Rect.hi.x, Rect.hi.y); 00177 return new GRenderClick( Rect, ConvertMatrix, Scale, 1, 0.0 ); 00178 break; 00179 00180 case RENDERTYPE_COLOURBITMAP: 00181 // TRACE(_T("Creating COLOURBITMAP region (%d, %d) - (%d, %d) GRenderClickColour\n"), Rect.lo.x, Rect.lo.y, Rect.hi.x, Rect.hi.y); 00182 return new GRenderClickColour( Rect, ConvertMatrix, Scale, 32, 0.0 ); 00183 break; 00184 00185 case RENDERTYPE_HITDETECT: 00186 // TRACE(_T("Creating HITDETECT region (%d, %d) - (%d, %d) GRenderClickColourNoPaper\n"), Rect.lo.x, Rect.lo.y, Rect.hi.x, Rect.hi.y); 00187 return new GRenderClickColourNoPaper( Rect, ConvertMatrix, Scale, 32, 0.0 ); 00188 // BODGE TEST! DO NOT RELEASE! 00189 // return new GRenderClick( Rect, ConvertMatrix, Scale, 1, 0.0 ); 00190 break; 00191 00192 default: 00193 ENSURE(FALSE, "Invalid RenderType passed to OSRenderBitmap::Create"); 00194 return NULL; 00195 } 00196 return NULL; 00197 }
|
|
Dupms the current bitmap onto the current view window, so we can see what is going on.
Definition at line 249 of file rendbits.cpp. 00250 { 00251 00252 if (pRegion->IsKindOf( CC_RUNTIME_CLASS(GRenderClick) ) ) 00253 ((RealClickClass*)pRegion)->DebugMe(Stretch); 00254 else 00255 ERROR3("Wrong class for DebugMe"); 00256 }
|
|
To investigate whether anything has been rendered into a bitmap-based render region.
Definition at line 222 of file rendbits.cpp. 00223 { 00224 ERROR2IF( pRegion==NULL, BITMAPCONTENTS_ERROR, "NULL pRegion" ); 00225 00226 ERROR2IF( !pRegion->IsKindOf(CC_RUNTIME_CLASS(GRenderClick)), BITMAPCONTENTS_ERROR, "Wrong class" ); 00227 00228 RealClickClass *pBitmap = (RealClickClass*)pRegion; // safe to cast now 00229 return pBitmap->GetContents( JustMiddle ); // then use member fn 00230 }
|