Hi, On Sun, 2002-01-20 at 20:51, zen Genius wrote: > Hello there. Suppose I want to draw a captured RGB from usb webcam using libsdl(SDL), how would I draw it? > Apparently SDL provide functions to draw bmp image, but not RGB 24. It does. Once you've created a SDL_Surface *surface, you can access the raw pixels using surface->pixels, which is just a memory pointer. You can point it directly to the RGB/v4l buffer. Don't forget to SDL_LockSurface()/SDL_UnlockSurface() while accessing the surface->pixels. Ronald -- - .-. - /V\ | Ronald Bultje <rbultje@xxxxxxxxxxxxxxxxxxx> - // \\ | Running: Linux 2.4.17-XFS and OpenBSD 3.0 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^