コード例 #1
0
 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.CalculateStrainColorsY(request.Max, request.Min, result.Vertexes);
         return(Paint(bitmap, vertexes));
     }
     return(bitmap);
 }