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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T10:29:58+00:00 2026-05-12T10:29:58+00:00

I have a bitmap image context and want to let this appear blurry. So

  • 0

I have a bitmap image context and want to let this appear blurry. So best thing I can think of is a gauss algorithm, but I have no big idea about how this kind of gauss blur algorithms look like? Do you know good tutorials or examples on this? The language does not matter so much, if it’s done all by hand without using language-specific API too much. I.e. in cocoa the lucky guys don’t need to think about it, they just use a Imagefilter that’s already there. But I don’t have something like this in cocoa-touch (objective-c, iPhone OS).

  • 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-12T10:29:58+00:00Added an answer on May 12, 2026 at 10:29 am

    This is actually quite simple. You have a filter pattern (also known as filter kernel) – a (small) rectangular array with coefficients – and just calculate the convolution of the image and the pattern.

    for y = 1 to ImageHeight
      for x = 1 to ImageWidth
        newValue = 0
        for j = 1 to PatternHeight
          for i = 1 to PatternWidth
            newValue += OldImage[x-PatternWidth/2+i,y-PatternHeight/2+j] * Pattern[i,j]
        NewImage[x,y] = newValue
    

    The pattern is just a Gauss curve in two dimensions or any other filter pattern you like. You have to take care at the edges of the image because the filter pattern will be partialy outside of the image. You can just assume that this pixels are balck, or use a mirrored version of the image, or what ever seems reasonable.

    As a final note, there are faster ways to calculate a convolution using Fourier transforms but this simple version should be sufficent for a first test.

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

Sidebar

Related Questions

I have a gdi+ bitmap, and I want to convert bitmap into HBitmap. I
I have a 2D bitmap-like array of let's say 500*500 values. I'm trying to
I have written an application in which I want to convert a .jpg image
I have a chart (in bitmap format) that I'm trying to render to a
I have a C++ DLL including bitmap resources created by Visual Studio. Though I
I have a problem in a Windows Forms application with Bitmap.Save failing when I
I am using GDI+ Bitmap class to convert an IStream to HBITMAP. I have
I have two bitmaps, produced by different variations of an algorithm. I'd like to
What i want to do: delete an image file from the private internal storage
I have the function below to generate a sample logo. What I want to

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.