Tao.Sdl SDK Documentation

Sdl.SDL_CreateYUVOverlay Method 

Create a YUV video overlay.

[Visual Basic]
Public Shared Function SDL_CreateYUVOverlay( _
   ByVal width As Integer, _
   ByVal height As Integer, _
   ByVal format As Integer, _
   ByVal display As IntPtr _
) As IntPtr
[C#]
public static IntPtr SDL_CreateYUVOverlay(
   int width,
   int height,
   int format,
   IntPtr display
);

Parameters

width
height
format
display
IntPtr to SDL_Surface

Return Value

IntPtr to SDL_Overlay

Remarks

SDL_CreateYUVOverlay creates a YUV overlay of the specified width, height and format (see Sdl.SDL_Overlay for a list of available formats), for the provided display. A Sdl.SDL_Overlay structure is returned.

The term 'overlay' is a misnomer since, unless the overlay is created in hardware, the contents for the display surface underneath the area where the overlay is shown will be overwritten when the overlay is displayed.

Binds to C-function call in SDL_video.h:

SDL_Overlay *SDL_CreateYUVOverlay(int width, int height, Uint32 format, SDL_Surface *display)
            

See Also

Sdl Class | Tao.Sdl Namespace | Sdl.SDL_Overlay | SDL_DisplayYUVOverlay | SDL_FreeYUVOverlay