comparison docs/html/sdldisplayformatalpha.html @ 55:55f1f1b3e27d

Added new docs for SDL 1.2.1
author Sam Lantinga <slouken@lokigames.com>
date Sun, 10 Jun 2001 19:31:57 +0000
parents 74212992fb08
children e5bc29de3f0a
comparison
equal deleted inserted replaced
54:028447a8a758 55:55f1f1b3e27d
2 ><HEAD 2 ><HEAD
3 ><TITLE 3 ><TITLE
4 >SDL_DisplayFormatAlpha</TITLE 4 >SDL_DisplayFormatAlpha</TITLE
5 ><META 5 ><META
6 NAME="GENERATOR" 6 NAME="GENERATOR"
7 CONTENT="Modular DocBook HTML Stylesheet Version 1.61 7 CONTENT="Modular DocBook HTML Stylesheet Version 1.64
8 "><LINK 8 "><LINK
9 REL="HOME" 9 REL="HOME"
10 TITLE="SDL Library Documentation" 10 TITLE="SDL Library Documentation"
11 HREF="index.html"><LINK 11 HREF="index.html"><LINK
12 REL="UP" 12 REL="UP"
71 >SDL_DisplayFormatAlpha</A 71 >SDL_DisplayFormatAlpha</A
72 ></H1 72 ></H1
73 ><DIV 73 ><DIV
74 CLASS="REFNAMEDIV" 74 CLASS="REFNAMEDIV"
75 ><A 75 ><A
76 NAME="AEN1936" 76 NAME="AEN2013"
77 ></A 77 ></A
78 ><H2 78 ><H2
79 >Name</H2 79 >Name</H2
80 >SDL_DisplayFormatAlpha&nbsp;--&nbsp;Convert a surface to the display format</DIV 80 >SDL_DisplayFormatAlpha&nbsp;--&nbsp;Convert a surface to the display format</DIV
81 ><DIV 81 ><DIV
82 CLASS="REFSYNOPSISDIV" 82 CLASS="REFSYNOPSISDIV"
83 ><A 83 ><A
84 NAME="AEN1939" 84 NAME="AEN2016"
85 ></A 85 ></A
86 ><H2 86 ><H2
87 >Synopsis</H2 87 >Synopsis</H2
88 ><DIV 88 ><DIV
89 CLASS="FUNCSYNOPSIS" 89 CLASS="FUNCSYNOPSIS"
90 ><A 90 ><A
91 NAME="AEN1940" 91 NAME="AEN2017"
92 ></A 92 ></A
93 ><P 93 ><P
94 ></P 94 ></P
95 ><PRE 95 ><PRE
96 CLASS="FUNCSYNOPSISINFO" 96 CLASS="FUNCSYNOPSISINFO"
110 ></DIV 110 ></DIV
111 ></DIV 111 ></DIV
112 ><DIV 112 ><DIV
113 CLASS="REFSECT1" 113 CLASS="REFSECT1"
114 ><A 114 ><A
115 NAME="AEN1946" 115 NAME="AEN2023"
116 ></A 116 ></A
117 ><H2 117 ><H2
118 >Description</H2 118 >Description</H2
119 ><P 119 ><P
120 >This function takes a surface and copies it to a new surface of the 120 >This function takes a surface and copies it to a new surface of the
126 ></P 126 ></P
127 ><P 127 ><P
128 >If you want to take advantage of hardware colorkey or alpha blit 128 >If you want to take advantage of hardware colorkey or alpha blit
129 acceleration, you should set the colorkey and alpha value before 129 acceleration, you should set the colorkey and alpha value before
130 calling this function.</P 130 calling this function.</P
131 ><P
132 >This function can be used to convert a colourkey to an alpha channel,
133 if the <TT
134 CLASS="LITERAL"
135 >SDL_SRCCOLORKEY</TT
136 > flag is set on the surface.
137 The generated surface will then be transparent (alpha=0) where the
138 pixels match the colourkey, and opaque (alpha=255) elsewhere.</P
131 ></DIV 139 ></DIV
132 ><DIV 140 ><DIV
133 CLASS="REFSECT1" 141 CLASS="REFSECT1"
134 ><A 142 ><A
135 NAME="AEN1951" 143 NAME="AEN2030"
136 ></A 144 ></A
137 ><H2 145 ><H2
138 >Return Value</H2 146 >Return Value</H2
139 ><P 147 ><P
140 >If the conversion fails or runs out of memory, it returns 148 >If the conversion fails or runs out of memory, it returns
144 ></P 152 ></P
145 ></DIV 153 ></DIV
146 ><DIV 154 ><DIV
147 CLASS="REFSECT1" 155 CLASS="REFSECT1"
148 ><A 156 ><A
149 NAME="AEN1955" 157 NAME="AEN2034"
150 ></A 158 ></A
151 ><H2 159 ><H2
152 >See Also</H2 160 >See Also</H2
153 ><P 161 ><P
154 ><A 162 ><A