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 428213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:39:12+00:00 2026-05-12T19:39:12+00:00

Like rounded corner for web pages, I want to draw it by setting the

  • 0

Like rounded corner for web pages,

I want to draw it by setting the parameters and programatically.

EDIT

It should be able to generate image like alt text
(source: alistapart.com)

  • 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-05-12T19:39:13+00:00Added an answer on May 12, 2026 at 7:39 pm

    Basically, you would draw on a bitmap in RAM to generate the picture, then either save it as a GIF file, or emit it directly to the browser, telling it that you are sending a GIF file. You will have to do the same kind of tiling and positioning of separate elements that web designers do in Photoshop, except that your code will do the work.

    For one possible library see libgd here where you would probably use line() to draw the straight lines and arc() to draw the corners. Of course, to get a shaded line, you need to draw multiple lines, offsetting a bit each time and changing the color.

    To see how web designers do it, have a look at this page. Note the list of corner images that are used. Before coding, it always helps to understand alternate ways of doing it. You might prefer leveraging CSS instead, which is probably easier to code.

    I don’t recommend using any canvas because most browsers don’t support it, and for much the same reason, I don’t think that SVG is a good way to do it for general purpose websites where you are just dressing up the look of the content.

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

Sidebar

Related Questions

I want to create a similar UIView with rounded corner and UIButton just like
I'm able to draw a rectangle with rounded corner with following code. What I'm
I have non-sass: .rounded-corners { -moz-border-radius-topleft: 4px; and want to do something like: $radius_size:
I'm drawing a rounded image in a UITableView cell like so: CGRect imageRect =
I want to use rounded border in IE7. I use moz-border-radius property in Firefox.Like
I'm using CSS 3 features like rounded corner or shadow box. IMHO These are
I'd like to create image (from another one) with rounded corners with GDI+. What's
I have created two rounded corner boxes which i would like to be aligned
thanks a bunch in advance! i was able to make a rounded corner button
I'd like to apply rounded corners to several blocks using the single image (above).

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.