Graphic Manipulation Library

This is a discussion on Graphic Manipulation Library within the C++ Programming forums, part of the General Programming Boards category; Is there any simple guide/sample/solution to work on graphics and add effects? Here is what I need to do... I ...

  1. #1
    Registered User
    Join Date
    Sep 2010
    Posts
    2

    Graphic Manipulation Library

    Is there any simple guide/sample/solution to work on graphics and add effects?

    Here is what I need to do...

    I need to make a dll to which an Image will be sent as an hBITMAP object. I need to apply blur effect on it and then return the changed object as hBITMAP... that's all.

    I do not need the code to be written but merely guidelines on how I should approach.

  2. #2
    Just a pushpin. bernt's Avatar
    Join Date
    May 2009
    Posts
    426
    A good start for a blur effect would be to do a box blur. Basically that consists of making each pixel in the new image equal to the average of the pixels around it. The "pixels around it" can consist of whatever group of pixels you want, really, but often it's a 5x5 box with the original pixel in the center.
    The cool thing about box blur is that you can apply in in succession (that is, box-blurring an already blurred image), and the result as you apply boxblur more and more is an approximation of gaussian blur. Doing box blur 3 times is considered a close enough approximation.
    There's some good info here (PDF).

    Note that you should make a new hBITMAP and return that rather than changing the image in-place because the blur won't turn out right on an image that's being changed while calculating blur. I don't know if you had this in mind or not but that's the case no matter what algorithm you use.
    Consider this post signed

  3. #3
    Registered User
    Join Date
    Sep 2010
    Posts
    2

    Thank

    Thank you for the guidance.

    I'll try it and post the code here.

    Thanks Again.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C problem - Create a Personal Library
    By Harliqueen in forum C Programming
    Replies: 33
    Last Post: 04-20-2010, 11:27 PM
  2. Library for clicks and keys manipulation
    By lautarox in forum C Programming
    Replies: 3
    Last Post: 11-17-2008, 03:18 PM
  3. Library functions eg. String manipulation function
    By bhupesh.kec in forum C Programming
    Replies: 6
    Last Post: 07-08-2008, 07:32 AM
  4. Which graphic library do you prefer?
    By Golden Bunny in forum Game Programming
    Replies: 21
    Last Post: 05-04-2002, 04:29 PM
  5. graphic library creation
    By bob5845 in forum C++ Programming
    Replies: 1
    Last Post: 04-04-2002, 11:30 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21