Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8662111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:39:22+00:00 2026-06-12T16:39:22+00:00

I need to draw a watermark string on image with double line fonts. The

  • 0

I need to draw a watermark string on image with double line fonts. The font should be configurable, but the character should always be drawn using double lines. I’m attaching a image what the result image should look like:

watermark with double line fonts

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T16:39:23+00:00Added an answer on June 12, 2026 at 4:39 pm

    You can get this by transforming text into a path and draw the path with a partially transparent pen. The core api to use is Graphics.AddText(). Here is a sample method that uses it:

        public static Bitmap Watermark(Image srce, string text, Font font, float angle) {
            Bitmap dest = new Bitmap(srce);
            var color = Color.FromArgb(120, Color.White);
            using (var gr = Graphics.FromImage(dest)) 
            using (var gp = new GraphicsPath())
            using (var pen = new Pen(color, 5)) {
                var sf = new StringFormat();
                sf.LineAlignment = sf.Alignment = StringAlignment.Center;
                gp.AddString(text, font.FontFamily, (int)font.Style, font.SizeInPoints, 
                             new Rectangle(-dest.Width/2, -dest.Height/2, dest.Width, dest.Height), 
                             sf);
                gr.TranslateTransform(dest.Width / 2, dest.Height / 2);
                gr.RotateTransform(-angle);
                gr.DrawPath(pen, gp);
            }
            return dest;
        }
    

    Sample usage:

        using (var bmp = Properties.Resources.Penguins) 
        using (var font = new Font(new FontFamily("Arial"), 144)) {
            pictureBox1.Image = Watermark(bmp, "DEMO", font, 45);
        }
    

    Which produces:

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to draw image async, but [UIImageView setImage:someImage] is not thread safe. So
I need to draw a rectange,circle and line and then animate them(press left ->
A need to draw an X in a View using Shapes , but the
I need to draw a .png image on an UIView. I have no clue
I need to draw a simple graph, but I have no experience with custom
Need draw a graph with dot/graphviz like this image: The texts can be above
I need to draw a slider in Qt which accepts a value of double/float
I need to draw a shape then add shadow but shadow is over the
I need to draw an image using 4 points. I have these 4 points
i need to draw something like the image below using WPF... i need this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.