public override void blend_hline(int x1, int y, int x2, Color c, byte cover) { int len = x2 - x1 + 1; if (cover == cover_full) { realloc_span(len); m_mask.combine_hspanFullCover(x1, y, m_span.Array, 0, (int)len); linkedImage.blend_solid_hspan(x1, y, (int)len, c, m_span.Array, 0); } else { init_span(len, cover); m_mask.combine_hspan(x1, y, m_span.Array, 0, (int)len); linkedImage.blend_solid_hspan(x1, y, (int)len, c, m_span.Array, 0); } }
public override void BlendHL(int x1, int y, int x2, ColorRGBA c, byte cover) { int len = x2 - x1 + 1; if (cover == cover_full) { realloc_span(len); m_mask.combine_hspanFullCover(x1, y, m_spans, 0, (int)len); linkedImage.BlendSolidHSpan(x1, y, (int)len, c, m_spans, 0); } else { init_span(len, cover); m_mask.combine_hspan(x1, y, m_spans, 0, (int)len); linkedImage.BlendSolidHSpan(x1, y, (int)len, c, m_spans, 0); } }