RaspRectangleCreate

NTSTATUS __stdcall RaspRectangleCreate(
        _RECTANGLE *Rectangle,
        UINT64 BitsPerPixel,
        _GRAPHICS_RECTANGLE **GraphicsRectangle,
        _BG_RASTERIZER_WORKSPACE *Workspace){
  unsigned int v4; 
  unsigned int v7; 
  _GRAPHICS_RECTANGLE *Memory; 
  NTSTATUS result; 
  _GRAPHICS_RECTANGLE *v10; 

  v4 = BitsPerPixel;
  v7 = ((unsigned int)(BitsPerPixel * Rectangle->Width * Rectangle->Height + 7) >> 3) + 72;
  Memory = (_GRAPHICS_RECTANGLE *)RaspAllocateMemory(v7, Workspace);
  if( !Memory )
    return -1073741801;
  result = BgpGxInitializeRectangle(Rectangle, v4, Memory, v7);
  *GraphicsRectangle = v10;
  return result;
}

Referenced by:

BgpRasPrintGlyph
RaspScanConvert