public override Bitmap Paint(Bitmap bitmap, DrawRequest request) { if (request.AnalyzeResults != null && request.AnalyzeResults.ImageResults.ContainsKey(request.Image.Index)) { var result = request.AnalyzeResults.ImageResults[request.Image.Index]; var vertexes = ColorHelper.CalculateStrainColorsX(request.Max, request.Min, result.Vertexes); return(Paint(bitmap, vertexes)); } return(bitmap); }