Exemple #1
0
 public RecursiveBlur(RecursizeBlurCalculator recursizeBluerCalculatorFactory)
 {
     m_sum1 = new VectorPOD <RecursizeBlurCalculator>();
     m_sum2 = new VectorPOD <RecursizeBlurCalculator>();
     m_buf  = new VectorPOD <RGBA_Bytes>();
     m_RecursizeBlurCalculatorFactory = recursizeBluerCalculatorFactory;
 }
Exemple #2
0
        public AntiAliasedRasterizerCells()
        {
            m_QSorter      = new QuickSortAntiAliasedCell();
            m_sorted_cells = new VectorPOD <AntiAliasingCell>();
            m_sorted_y     = new VectorPOD <SortedY>();
            m_min_x        = (0x7FFFFFFF);
            m_min_y        = (0x7FFFFFFF);
            m_max_x        = (-0x7FFFFFFF);
            m_max_y        = (-0x7FFFFFFF);
            m_sorted       = (false);

            m_style_cell.Initial();
            m_curr_cell.Initial();
        }
Exemple #3
0
        private void AllocateCellsIfRequired()
        {
            if (m_cells == null || (m_num_used_cells + 1) >= m_cells.Capacity())
            {
                if (m_num_used_cells >= (int)ECellBlockScale.Limit)
                {
                    return;
                }

                uint new_num_allocated_cells           = m_num_used_cells + (uint)ECellBlockScale.Size;
                VectorPOD <AntiAliasingCell> new_cells = new VectorPOD <AntiAliasingCell>(new_num_allocated_cells);
                if (m_cells != null)
                {
                    new_cells.CopyFrom(m_cells);
                }
                m_cells = new_cells;
            }
        }
 ///<summary>
 ///</summary>
 public AntiAliasedCompundRasterizer()
 {
     _rasterizer       = new AntiAliasedRasterizerCells();
     _vectorClipper    = new VectorClipper_DoClip();
     _fillingRule      = Basics.FillingRule.NonZero;
     _layerOrder       = ELayerOrder.LayerDirect;
     _activeStyles     = new VectorPOD <StyleInfo>();
     _activeStyleTable = new VectorPOD <uint>();
     _activeStyleMask  = new VectorPOD <byte>();
     _cells            = new VectorPOD <AntiAliasingCell>();
     _coverBuffer      = new VectorPOD <byte>();
     _masterAlpha      = new VectorPOD <uint>();
     _minStyle         = (0x7FFFFFFF);
     _maxStyle         = (-0x7FFFFFFF);
     _startX           = (0);
     _startY           = (0);
     _scanY            = (0x7FFFFFFF);
     _scanlineStart    = (0);
     _scanlineLength   = (0);
 }