> Console.WriteLine("Years of experiences: " + (int)itJourneyStart.TotalYears);
Years of experiences: 330 using (SKSurface surface = SKSurface.Create(new SKImageInfo(toolsAndLanguages.Count * (imageSize + 10), 60)) {
31 SKCanvas canvas = SKSurface.Canvas;
32 canvas.Clear(SKColors.Transparent);
33
34 for (int i = 0; i < toolsAndLanguages.Count; i++) {
35 SKBitmap icon = toolsAndLanguages[i].Resize(new SKImageInfo(imageSize, imageSize), SKFilterQuality.High);
36 canvas.DrawBitmap(icon, (imageSize + 10) * i, (60 - imageSize) / 2);
37 }
38
39 using (SKImage image = surface.Snapshot())
40 using (SKData output = image.Encode(SKEncodedImageFormat.Png, 100))
41 RenderImage(output.ToArray());
42 }