>SDL_DisplayFormat<
/TITLE
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
REL="HOME"
TITLE="SDL Library Documentation"
REL="UP"
TITLE="Video"
REL="PREVIOUS"
TITLE="SDL_FillRect"
HREF="sdlfillrect.html"><
LINK
REL="NEXT"
TITLE="SDL_DisplayFormatAlpha"
HREF="sdldisplayformatalpha.html"><
/HEAD
CLASS="REFENTRY"
BGCOLOR="#FFF8DC"
TEXT="#000000"
LINK="#0000ee"
VLINK="#551a8b"
ALINK="#ff0000"
CLASS="NAVHEADER"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
COLSPAN="3"
ALIGN="center"
>SDL Library Documentation<
/TH
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
HREF="sdlfillrect.html"
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
HREF="sdldisplayformatalpha.html"
ALIGN="LEFT"
NAME="SDLDISPLAYFORMAT"
CLASS="REFNAMEDIV"
NAME="AEN1975"
>SDL_DisplayFormat -- Convert a surface to the display format<
/DIV
CLASS="REFSYNOPSISDIV"
NAME="AEN1978"
CLASS="FUNCSYNOPSIS"
NAME="AEN1979"
CLASS="FUNCSYNOPSISINFO"
CLASS="FUNCDEF"
CLASS="FSFUNC"
>
(SDL_Surface *surface
);<
/CODE
CLASS="REFSECT1"
NAME="AEN1985"
>This function takes a surface and copies it to a new surface of the
pixel format and colors of the video framebuffer, suitable for fast
blitting onto the display surface. It calls
HREF="sdlconvertsurface.html"
>If you want to take advantage of hardware colorkey or alpha blit
acceleration, you should set the colorkey and alpha value before
calling this function.<
/P
>If you want an alpha channel, see <
A
HREF="sdldisplayformatalpha.html"
>SDL_DisplayFormatAlpha<
/A
CLASS="REFSECT1"
NAME="AEN1992"
>If the conversion fails or runs out of memory, it returns
CLASS="RETURNVALUE"
CLASS="REFSECT1"
NAME="AEN1996"
HREF="sdlconvertsurface.html"
CLASS="FUNCTION"
>,
HREF="sdldisplayformatalpha.html"
CLASS="FUNCTION"
>SDL_DisplayFormatAlpha<
/TT
>
HREF="sdlsetalpha.html"
CLASS="FUNCTION"
>,
HREF="sdlsetcolorkey.html"
CLASS="FUNCTION"
>,
HREF="sdlsurface.html"
CLASS="STRUCTNAME"
CLASS="NAVFOOTER"
ALIGN="LEFT"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
WIDTH="33%"
ALIGN="left"
VALIGN="top"
HREF="sdlfillrect.html"
WIDTH="34%"
ALIGN="center"
VALIGN="top"
HREF="index.html"
WIDTH="33%"
ALIGN="right"
VALIGN="top"
HREF="sdldisplayformatalpha.html"
WIDTH="33%"
ALIGN="left"
VALIGN="top"
WIDTH="34%"
ALIGN="center"
VALIGN="top"
HREF="video.html"
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>SDL_DisplayFormatAlpha<
/TD
>