Пример #1
0
        //--------------------------------------------------------------------
        public void reset(int min_x, int max_x)
        {
            int max_len = max_x - min_x + 3;

            if (max_len > m_spans.Size())
            {
                m_spans.Resize(max_len);
            }
            m_last_x     = 0x7FFFFFF0;
            m_span_index = 0;
        }
Пример #2
0
 //------------------------------------------------------------------------
 public void init(int max)
 {
     if (max > 2 && max > m_max)
     {
         m_am.Resize(max * 3);
         m_max     = max;
         m_xOffset = m_max;
         m_yOffset = m_max * 2;
     }
     m_num      = 0;
     m_last_idx = -1;
 }
Пример #3
0
        private void realloc_lut(double radius)
        {
            m_radius   = radius;
            m_diameter = agg_basics.uceil(radius) * 2;
            m_start    = -(int)(m_diameter / 2 - 1);
            int size = (int)m_diameter << (int)image_subpixel_scale_e.image_subpixel_shift;

            if (size > m_weight_array.Size())
            {
                m_weight_array.Resize(size);
            }
        }