Jerry8989 Posted August 8, 2017 Share Posted August 8, 2017 Hello, I'm new to paint.net and I'm trying to create a year list from 1970 - 2007. I would like the years to be vertical so the 1 is at the bottom and the 0 is at the top for 1970. I want to add a pipe character to separate the years. Is there a systemic way to do this where every year is positioned and looks like the others? What would be the best way to create this image? Quote Link to comment Share on other sites More sharing options...
toe_head2001 Posted August 8, 2017 Share Posted August 8, 2017 7 hours ago, Jerry8989 said: What would be the best way to create this image? Programmatically, perhaps? Spoiler void Render(Surface dst, Surface src, Rectangle rect) { int startYear = 1980; int endYear = 2017; dst.CopySurface(src, rect.Location, rect); using (Graphics g = new RenderArgs(dst).Graphics) { g.TextRenderingHint = TextRenderingHint.AntiAlias; g.Clip = new Region(rect); using (Font font = new Font("Arial", 16)) { SizeF textDims = g.MeasureString("8", font); int indent = 5; for (int year = startYear; year <= endYear; year++) { string yearString = string.Join("\n", year.ToString().ToCharArray().Reverse()); g.DrawString(yearString, font, System.Drawing.Brushes.Black, indent, 5); indent += (int)textDims.Width + 5; g.DrawLine(Pens.Black, indent, 0, indent, textDims.Height * 4); indent += 5; } } } } 1 Quote (September 25th, 2023) Sorry about any broken images in my posts. I am aware of the issue. My Gallery | My Plugin Pack Layman's Guide to CodeLab Link to comment Share on other sites More sharing options...
Jerry8989 Posted August 8, 2017 Author Share Posted August 8, 2017 Thank you for the reply Toe. I actually just figured out a way to do it, but it isn't with paint.net. I used excel to set it up and then created a screen shot of that and edited to make it fit. Thank you Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.