示例#1
0
        /// <summary>
        /// Generates the Bitmap result
        /// </summary>
        private void GenerateMatchMap()
        {
            _matchMap = (IImageAdapter)Target.Clone();

            foreach (GlyphBase glyph in Glyphs)
            {
                int nbMatch = glyph.CompareInfo.Matches.Count;
                for (int i = 0; i < nbMatch; i++)
                {
                    MatchingInfo matchInfo = (MatchingInfo)(glyph.CompareInfo.Matches[i]);
                    Rectangle    rect      = matchInfo.BoundingBox;
                    ImageUtility.FillRect(_matchMap, rect, new ColorByte(80, 255, 0, 0));
                    ImageUtility.DrawRect(_matchMap, rect, (ColorByte)Color.Yellow);
                }
            }
        }