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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:11:56+00:00 2026-05-24T00:11:56+00:00

I am building an application in iphone for that I need to draw a

  • 0

I am building an application in iphone for that I need to draw a 7-bit segment display which will display the numbers that is being fed by the user.I am using CGPath and CGcontext.
I have drawn 7-bit segment as the no in digital clock.But, I am not getting the way to display the no given By user. To draw a 7-bit segment display, i have done..

    CGContextRef context = UIGraphicsGetCurrentContext();   
    CGLineCap cap =kCGLineCapRound;
    center = CGPointMake(120, 130.0);
    CGContextSetRGBStrokeColor(context, 0.5, 0.0, 1.0, 0.5);
    path = CGPathCreateMutable();
    CGContextSetLineWidth(context, 08.0);
    CGContextSetLineCap(context, cap);
    CGPoint aOnePoint=CGPointMake(center.x ,center.y);
    CGPoint aTwoPoint=CGPointMake(center.x ,center.y+30);
    CGPoint points[]= {aOnePoint,aTwoPoint};    

    CGAffineTransform translation1 = CGAffineTransformMakeTranslation(0, 30);  
    CGAffineTransform translation2 = CGAffineTransformTranslate(translation1, 0, 42);
    CGAffineTransform translation3 = CGAffineTransformTranslate(translation1, 42,0); 
    CGAffineTransform translation4 = CGAffineTransformTranslate(translation1, 42, 42);
    CGAffineTransform translation7 = CGAffineTransformMakeTranslation(-270, 0); 
    CGAffineTransform translation5 = CGAffineTransformMakeRotation(-M_PI/2.0);
    CGAffineTransform translation8 = CGAffineTransformMakeTranslation(-4, +3);
    CGAffineTransform translation6 = CGAffineTransformConcat(CGAffineTransformConcat(translation7, translation5),translation8);
    CGAffineTransform translation9 = CGAffineTransformTranslate(translation6, -44, 0);
    CGAffineTransform translation10 = CGAffineTransformTranslate(translation6,-86, 0);

    CGPathAddLines(path, &translation1 ,points,2);
    CGPathAddLines(path, &translation2,points,2);
    CGPathAddLines(path, &translation3 ,points,2);
    CGPathAddLines(path, &translation4 ,points,2);
    CGPathAddLines(path, &translation6 ,points,2);
    CGPathAddLines(path, &translation9 ,points,2);
    CGPathAddLines(path, &translation10 ,points,2);

    CGContextBeginPath(context);
    CGContextAddPath(context, path);
    CGPathRelease(path);
    CGContextStrokePath(context);
    CGContextSaveGState(context);
    CGContextClosePath(context); 

Any help will be appreciated.

  • 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-24T00:11:57+00:00Added an answer on May 24, 2026 at 12:11 am

    Do you really need to draw it? I’m sure 10 images, one for each numeral, would be much more satisfying.

    Edit from comment:
    If you name your images 0.png 1.png 2.png etc., you can use the integer value entered by the user to change the displayed image(s) very quickly. If you’re worried about wasting disk space, it is really not a problem, as each image should not weigh more than 5kB if well compressed.

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

Sidebar

Related Questions

I'm building an iphone application that will need to communicate and exchange data with
Building an iPhone OS application that will allow users to anonymously post information to
I'm building an application that search and recognizes any iPhone apps that user has
I need to create an application for the iPhone that will connect to a
I am building an applicaiton for the iPhone that will display upcoming and past
I am building an iPhone application that requires the user to enter his credentials
I am building a Flex iPhone application that in an ideal world would need
I am building an application that will have web, windows and mobile (iPhone) client,
I am building an iPhone application that will be using a weighted graph (probably
I'm building an iPhone application that talks to a Ruby on Rails backend. The

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.