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

  • Home
  • SEARCH
  • 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 6717837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:53:56+00:00 2026-05-26T08:53:56+00:00

I have an application that requires some work on image filters, so I just

  • 0

I have an application that requires some work on image filters, so I just started working on filters and I achieved few filters like Black & white, Hud, moss,brightness,contrast etc.

Here are few filters that I am facing problem to achieve

  1. Nostalgia
  2. Vintage
  3. Old

Original Image

enter image description here

Nostalgia

enter image description here

vintage

enter image description here

old

enter image description here

If anyone can guide me on the right direction it would be great.

Thanks in advance.

  • 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-26T08:53:57+00:00Added an answer on May 26, 2026 at 8:53 am

    This thread is very informative about image filtering in iphone…

    EDIT

    This what I have done to make an image vintage (Vintage image requirement in my case was slightly different..It didn’t have shades on the edges)

    //first increase contrast a bit...
    float contrastValue             =   1.45;
    CGImageRef originalImage        =   [myImage CGImage];
    CGColorSpaceRef colorSpace      =   CGColorSpaceCreateDeviceRGB();
    CGContextRef bitmapContext      =   CGBitmapContextCreate(NULL,CGImageGetWidth(originalImage),CGImageGetHeight(originalImage),8,CGImageGetWidth(originalImage)*4,colorSpace,kCGImageAlphaPremultipliedLast);
    CGColorSpaceRelease(colorSpace);
    CGContextDrawImage(bitmapContext, CGRectMake(0, 0, CGBitmapContextGetWidth(bitmapContext), CGBitmapContextGetHeight(bitmapContext)), originalImage);
    UInt8* data                     =   CGBitmapContextGetData(bitmapContext);
    int numComponents               =   4;
    int bytesInContext              =   CGBitmapContextGetHeight(bitmapContext) * CGBitmapContextGetBytesPerRow(bitmapContext);
    double redIn, greenIn, blueIn;
    
    for (int i = 0; i < bytesInContext; i += numComponents) {
        redIn                       =   (double)data[i]/255.0;
        greenIn                     =   (double)data[i+1]/255.0;
        blueIn                      =   (double)data[i+2]/255.0;
        
        redIn                       -=  0.5;
        redIn                       *=  contrastValue;
        redIn                       +=  0.5;
        redIn                       *=  255.0;
        if (redIn < 0) {
            redIn                   =   0;
        }
        if (redIn > 255) {
            redIn                   =   255;
        }
        
        greenIn                     -=  0.5;
        greenIn                     *=  contrastValue;
        greenIn                     +=  0.5;
        greenIn                     *=  255.0;
        if (greenIn < 0) {
            greenIn                 =   0;
        }
        if (greenIn > 255) {
            greenIn                 =   255;
        }
        
        
        blueIn                      -=  0.5;
        blueIn                      *=  contrastValue;
        blueIn                      +=  0.5;
        blueIn                      *=  255.0;
        if (blueIn < 0) {
            blueIn                  =   0;
        }
        if (blueIn > 255) {
            blueIn                  =   255;
        }
        data[i]                     =   (redIn);
        data[i+1]                   =   (greenIn);
        data[i+2]                   =   (blueIn);
    }
    CGImageRef outImage             =   CGBitmapContextCreateImage(bitmapContext);
    myImage                         =   [UIImage imageWithCGImage:outImage];
    CGImageRelease(outImage);
    
    //Then blend it with a yellowish color
    UIGraphicsBeginImageContext(myImage.size);
    CGContextRef ctx                =   UIGraphicsGetCurrentContext();
    CGRect area                     =   CGRectMake(0, 0, myImage.size.width, myImage.size.height);
    CGContextScaleCTM(ctx, 1, -1);
    CGContextTranslateCTM(ctx, 0, -area.size.height);
    CGContextSaveGState(ctx);
    CGContextClipToMask(ctx, area, myImage.CGImage);
    UIColor *color                  =   [UIColor colorWithRed:248.0/255.0 green:254.0/255.0 blue:186.0/255.0 alpha:1.0]; //[UIColor colorWithRed:248.0/255.0 green:254.0/255.0 blue:186.0/255.0 alpha:1.0]
    [color set];
    CGContextFillRect(ctx, area);
    CGContextRestoreGState(ctx);
    CGContextSetBlendMode(ctx, kCGBlendModeMultiply);
    CGContextDrawImage(ctx, area, myImage.CGImage);
    myImage                         =   UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    
    UIGraphicsBeginImageContext(myImage.size);
    ctx                             =   UIGraphicsGetCurrentContext();
     area                           =   CGRectMake(0, 0, myImage.size.width, myImage.size.height);
    CGContextScaleCTM(ctx, 1, -1);
    CGContextTranslateCTM(ctx, 0, -area.size.height);
    CGContextSaveGState(ctx);
    CGContextClipToMask(ctx, area, myImage.CGImage);
    color                           =   [UIColor colorWithRed:27.0/255.0 green:50.0/255.0 blue:224.0/255.0 alpha:0.2]; //[UIColor colorWithRed:248.0/255.0 green:254.0/255.0 blue:186.0/255.0 alpha:1.0]
    [color set];
    CGContextFillRect(ctx, area);
    CGContextRestoreGState(ctx);
    CGContextSetBlendMode(ctx, kCGBlendModeLighten);
    CGContextDrawImage(ctx, area, myImage.CGImage);
    processedImage                  =   UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    

    This might not work for you as is..Please play with this for your own requirement..Copied from memory, errors possible..

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

Sidebar

Related Questions

I have a WinForms application that requires some configuration which I do at install
I have an asp.net application that requires some editing of the machine.config file in
I'm working on an intranet-only web application (J2EE) that requires some basic security features.
I have an application that requires resizing of a component that will be scaled
I have an application that requires Microsoft VC++ 2005 (SP1) Redistributable Package. I know
I have an application that requires a sequence to be present in the database.
I have a c# wpf application that requires SQL Express 2005 database and I
I have a .Net 4.0 WPF application that requires an embedded database. MS Access
We have an internal ASP.NET MVC application that requires a logon. Log on works
I have an application which runs a tool that requires network connection. Now my

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.