Home Forums Programming visual c++ 2005 exist putpixel???

Viewing 6 reply threads
  • Author
    Posts
    • #5738
      Anonymous
      Inactive

      i am working in an image processing program, trying to use the bitmap class to work with the i.p. algorithms, but its way to slow, threshold takes 25 seconds in a fast computer, so, i was wondering if can i use something like putpixel to speed up the program, using my own class for the images and just displaying the image with putpixel, i was using a picturebox to show the image on display … if somebody can help me … please… i’m kind of desperate…. thank you

    • #34797
      Anonymous
      Inactive

      What is it you are after?
      If I was doing any sort of texture manipulation or rendering I would just use DirectX. (IDirect3DTexture)

    • #34806
      Anonymous
      Inactive

      i just want to do basic image processing operations, halftoning, error difussion, but it goes to slow … i need it to speed up … so i was looking for a way of having my own clase image and rendering in some way that doesnt involve getpixel and setpixel that slow the whole process…. please help!!! anybody help me …. :cry:

    • #35064
      Anonymous
      Inactive

      A great general purpose image library is SDL as it allows fast access to pixels without the headaches of pixel conversions (16/32/24-bit etc).

      http://www.libsdl.org/projects/SDL_image/

      It’s also platform independent to boot.

    • #35065
      Anonymous
      Inactive

      What is it you are after?
      If I was doing any sort of texture manipulation or rendering I would just use DirectX. (IDirect3DTexture)[/quote:754a3326ca]

      Same here. i’d grab the surface pointer and feck with that.

    • #35066
      Anonymous
      Inactive

      A great general purpose image library is SDL as it allows fast access to pixels without the headaches of pixel conversions (16/32/24-bit etc).

      http://www.libsdl.org/projects/SDL_image/

      It’s also platform independent to boot.[/quote:196203dfcf]

      If you haven’t used Direct X before SDL is an easier route. It’s easy to set up, extremely friendly community and handles much of the initialization for you.

    • #35220
      Anonymous
      Inactive

      A great general purpose image library is SDL as it allows fast access to pixels without the headaches of pixel conversions (16/32/24-bit etc).

      http://www.libsdl.org/projects/SDL_image/

      It’s also platform independent to boot.[/quote:21a7085639]

      If you haven’t used Direct X before SDL is an easier route. It’s easy to set up, extremely friendly community and handles much of the initialization for you.[/quote:21a7085639]

      I’d second that. I’ve used DDraw surfaces before but SDL is just so much easier to use and the documentation that comes with it is very helpful also. I wouldn’t go using functions to manipulate pixels though, when you’re doing something that often (like per pixel operations) every little bit of extra overhead can make a big difference. Consider just getting a pointer to the pixel array and start from there. If you know a little assembly also using the SIMD instructions could also potentially speed up whatever you are trying to do, though it might not be applicable to some algorithms.

Viewing 6 reply threads
  • The forum ‘Programming’ is closed to new topics and replies.