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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T19:55:19+00:00 2026-05-16T19:55:19+00:00

I need to display a image view that is filled with violet color picture

  • 0

I need to display a image view that is filled with violet color picture as shown belowalt text,
but there us no UIColor color violet for this.

How can i display it?

  • 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-16T19:55:20+00:00Added an answer on May 16, 2026 at 7:55 pm

    You can use:

    [UIColor colorWithRed:0.5 green:0.0 blue:1 alpha:1.0]
    

    to define a custom UIColor with values for red, green and blue, and set it to the background color of your ImageView:

    imageView.backgroundColor = [UIColor colorWithRed:0.5 green:0.0 blue:1 alpha:1.0];
    

    Take a look at this question regarding adding a border to the view.

    EDIT (Question clarified somewhat)

    It looks like you’re trying to display an image that has a portion coloured at runtime.

    To do this, create the image as a png, and leave the parts you want to be filled with the color transparent. You can then set the background color of the UIImageView to the violet approximation, and set the image property to the image you created.

    Note that Violet is outside the color gamut of the RGB colour space, so you’ll need to find the RGB values of the color you want. Also note this function takes values between 0 and 1 rather than 0 and 255.

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

Sidebar

Related Questions

I need to display in image on the view this way <img src =
I need to display image and one button on fancybox popup but I can't
I need to display an image, which I've done without problems before, but today
So, I have an imageview that should display an arbitrary image, a profile picture
I have a basic linear layout, with image view that display photos, textviews that
This is my requirement in Android . I need to display a tiny image.
I am attempting to implement a custom view. This view should display an image
I need to display array of images in a single view which have various
I need to display image and text in my listview when i click a
I need to resize an image to display on different pages in different sizes,

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.