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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:27:17+00:00 2026-06-04T00:27:17+00:00

Following code adds a nice sepia effect to an image but when I choose

  • 0

Following code adds a nice sepia effect to an image but when I choose another filter for example: CIBloom I see no image at all. Can you help?

- (void)drawRect:(CGRect)rect
{
    UIImage *megan = [UIImage imageNamed:@"megan.png"];

    CIImage *cimage = [[CIImage alloc] initWithImage:megan];

    CIFilter *myFilter = [CIFilter filterWithName:@"CISepiaTone"];

    [myFilter setDefaults];
    [myFilter setValue:cimage forKey:@"inputImage"];
    [myFilter setValue:[NSNumber numberWithFloat:0.8f] forKey:@"inputIntensity"];

    CIImage *image = [myFilter outputImage];
    CIContext *context = [CIContext contextWithOptions:nil];
    CGImageRef cgImage = [context createCGImage:image fromRect:image.extent];
    UIImage *resultUIImage = [UIImage imageWithCGImage:cgImage];
    CGImageRelease(cgImage);

    CGRect imageRecht = [[UIScreen mainScreen] bounds];
    [resultUIImage drawInRect:imageRecht];
}

From my understanding I should be able to just edit following lines to change the filter:

CIFilter *myFilter = [CIFilter filterWithName:@"CIBloom"];
[myFilter setValue:[NSNumber numberWithFloat:10.0f] forKey:@"inputIntensity"];

but when I do this I see no image at all when I start the app.

  • 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-04T00:27:18+00:00Added an answer on June 4, 2026 at 12:27 am

    CISepiaTone is available in Mac OS X v10.4 and later and in iOS 5.0 and later, while CIBloom
    is only available in Mac OS X v10.4 and later.

    https://developer.apple.com/library/mac/#documentation/graphicsimaging/reference/CoreImageFilterReference/Reference/reference.html

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

Sidebar

Related Questions

I have the following code which adds some arrays to a hashmap but then
The following code adds a class to a link and removes another class from
Following code works perfect and adds 1 and 2 values to the list, but
The following code adds a checkbox and a label to the calling node. My
I have the following code, which should adds a field to a form if
Following code is to save image took from camera into photo album. if ([mediaType
Is it true that following code adds a XSS vulnerability to some JSP page?
I have the following code that adds an observer in the loading of the
I have the following code that adds a file upload option to a div
I have the following code that adds a record to my MySQL database via

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.