Jump to content

Create year list with verticle years

Recommended Posts



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?


Link to comment
Share on other sites

7 hours ago, Jerry8989 said:

What would be the best way to create this image?


Programmatically, perhaps?



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;



  • Upvote 1

(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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...