Home › Forums › Programming › visual c++ 2005 exist putpixel???
- This topic has 6 replies, 6 voices, and was last updated 18 years ago by Anonymous.
-
AuthorPosts
-
-
08/12/2006 at 8:03 am #5738AnonymousInactive
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
-
08/12/2006 at 5:08 pm #34797AnonymousInactive
What is it you are after?
If I was doing any sort of texture manipulation or rendering I would just use DirectX. (IDirect3DTexture) -
09/12/2006 at 6:44 am #34806AnonymousInactive
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:
-
08/01/2007 at 2:08 pm #35064AnonymousInactive
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.
-
08/01/2007 at 3:31 pm #35065AnonymousInactive
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.
-
08/01/2007 at 3:45 pm #35066AnonymousInactive
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.
-
18/01/2007 at 12:21 am #35220AnonymousInactive
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.
-
-
AuthorPosts
- The forum ‘Programming’ is closed to new topics and replies.