* split TglBitmap into TglBitmap and TglBitmapData to be able to handle load, save...
[glBitmap.git] / doc / glBitmap.TglBitmapData.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
2 <html>
3 <head>
4 <title>glBitmap: Class TglBitmapData</title>
5 <meta name="generator" content="PasDoc 0.13.0">
6 <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
7 <link rel="StyleSheet" type="text/css" href="pasdoc.css">
8 </head>
9 <body>
10 <table class="container"><tr><td class="navigation">
11 <p><a href="AllUnits.html" class="navigation">Units</a></p><p><a href="ClassHierarchy.html" class="navigation">Class Hierarchy</a></p><p><a href="AllClasses.html" class="navigation">Classes, Interfaces, Objects and Records</a></p><p><a href="AllTypes.html" class="navigation">Types</a></p><p><a href="AllVariables.html" class="navigation">Variables</a></p><p><a href="AllConstants.html" class="navigation">Constants</a></p><p><a href="AllFunctions.html" class="navigation">Functions and Procedures</a></p><p><a href="AllIdentifiers.html" class="navigation">Identifiers</a></p></td><td class="content">
12 <a name="TglBitmapData"></a><h1 class="cio">Class TglBitmapData</h1>
13 <table class="sections wide_list">
14 <tr>
15 <td><a class="section" href="#PasDoc-Description">Description</a></td><td><a class="section" href="#PasDoc-Hierarchy">Hierarchy</a></td><td><a class="section" href="#PasDoc-Fields">Fields</a></td><td><a class="section" href="#PasDoc-Methods">Methods</a></td><td><a class="section" href="#PasDoc-Properties">Properties</a></td></tr></table>
16 <a name="PasDoc-Description"></a><h2 class="unit">Unit</h2>
17 <p class="unitlink">
18 <a  href="glBitmap.html">glBitmap</a></p>
19 <h2 class="declaration">Declaration</h2>
20 <p class="declaration">
21 <code>type TglBitmapData = class(TObject)</code></p>
22 <h2 class="description">Description</h2>
23 <p>
24 class to store texture data in. used to load, save and manipulate data before assigned to texture object all operations on a data object can be done from a background thread</p>
25 <a name="PasDoc-Hierarchy"></a><h2 class="hierarchy">Hierarchy</h2>
26 <ul class="hierarchy"><li class="ancestor">TObject</li>
27 <li class="thisitem">TglBitmapData</li></ul><h2 class="overview">Overview</h2>
28 <a name="PasDoc-Fields"></a><h3 class="summary">Fields</h3>
29 <table class="summary wide_list">
30 <tr class="list">
31 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
32 <td class="itemcode"><code><b><a  href="glBitmap.TglBitmapData.html#fData">fData</a></b>: PByte;</code></td>
33 </tr>
34 <tr class="list2">
35 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
36 <td class="itemcode"><code><b><a  href="glBitmap.TglBitmapData.html#fDimension">fDimension</a></b>: <a  href="glBitmap.TglBitmapSize.html">TglBitmapSize</a>;</code></td>
37 </tr>
38 <tr class="list">
39 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
40 <td class="itemcode"><code><b><a  href="glBitmap.TglBitmapData.html#fFormat">fFormat</a></b>: <a  href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>;</code></td>
41 </tr>
42 <tr class="list2">
43 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
44 <td class="itemcode"><code><b><a  href="glBitmap.TglBitmapData.html#fFilename">fFilename</a></b>: String;</code></td>
45 </tr>
46 <tr class="list">
47 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
48 <td class="itemcode"><code><b><a  href="glBitmap.TglBitmapData.html#fScanlines">fScanlines</a></b>:    array of PByte;</code></td>
49 </tr>
50 <tr class="list2">
51 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
52 <td class="itemcode"><code><b><a  href="glBitmap.TglBitmapData.html#fHasScanlines">fHasScanlines</a></b>: Boolean;</code></td>
53 </tr>
54 </table>
55 <a name="PasDoc-Methods"></a><h3 class="summary">Methods</h3>
56 <table class="summary wide_list">
57 <tr class="list">
58 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
59 <td class="itemcode"><code>function <b><a  href="glBitmap.TglBitmapData.html#GetFormatDescriptor">GetFormatDescriptor</a></b>: <a  href="glBitmap.TglBitmapFormatDescriptor.html">TglBitmapFormatDescriptor</a>;</code></td>
60 </tr>
61 <tr class="list2">
62 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
63 <td class="itemcode"><code>function <b><a  href="glBitmap.TglBitmapData.html#GetWidth">GetWidth</a></b>: Integer;</code></td>
64 </tr>
65 <tr class="list">
66 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
67 <td class="itemcode"><code>function <b><a  href="glBitmap.TglBitmapData.html#GetHeight">GetHeight</a></b>: Integer;</code></td>
68 </tr>
69 <tr class="list2">
70 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
71 <td class="itemcode"><code>function <b><a  href="glBitmap.TglBitmapData.html#GetScanlines">GetScanlines</a></b>(const aIndex: Integer): PByte;</code></td>
72 </tr>
73 <tr class="list">
74 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
75 <td class="itemcode"><code>procedure <b><a  href="glBitmap.TglBitmapData.html#SetFormat">SetFormat</a></b>(const aValue: <a  href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>);</code></td>
76 </tr>
77 <tr class="list2">
78 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
79 <td class="itemcode"><code>procedure <b><a  href="glBitmap.TglBitmapData.html#PrepareResType">PrepareResType</a></b>(var aResource: String; var aResType: PChar);</code></td>
80 </tr>
81 <tr class="list">
82 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
83 <td class="itemcode"><code>procedure <b><a  href="glBitmap.TglBitmapData.html#UpdateScanlines">UpdateScanlines</a></b>;</code></td>
84 </tr>
85 <tr class="list2">
86 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
87 <td class="itemcode"><code>function <b><a  href="glBitmap.TglBitmapData.html#LoadPNG">LoadPNG</a></b>(const aStream: TStream): Boolean; virtual;</code></td>
88 </tr>
89 <tr class="list">
90 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
91 <td class="itemcode"><code>procedure <b><a  href="glBitmap.TglBitmapData.html#SavePNG">SavePNG</a></b>(const aStream: TStream); virtual;</code></td>
92 </tr>
93 <tr class="list2">
94 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
95 <td class="itemcode"><code>function <b><a  href="glBitmap.TglBitmapData.html#LoadJPEG">LoadJPEG</a></b>(const aStream: TStream): Boolean; virtual;</code></td>
96 </tr>
97 <tr class="list">
98 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
99 <td class="itemcode"><code>procedure <b><a  href="glBitmap.TglBitmapData.html#SaveJPEG">SaveJPEG</a></b>(const aStream: TStream); virtual;</code></td>
100 </tr>
101 <tr class="list2">
102 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
103 <td class="itemcode"><code>function <b><a  href="glBitmap.TglBitmapData.html#LoadRAW">LoadRAW</a></b>(const aStream: TStream): Boolean;</code></td>
104 </tr>
105 <tr class="list">
106 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
107 <td class="itemcode"><code>procedure <b><a  href="glBitmap.TglBitmapData.html#SaveRAW">SaveRAW</a></b>(const aStream: TStream);</code></td>
108 </tr>
109 <tr class="list2">
110 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
111 <td class="itemcode"><code>function <b><a  href="glBitmap.TglBitmapData.html#LoadBMP">LoadBMP</a></b>(const aStream: TStream): Boolean;</code></td>
112 </tr>
113 <tr class="list">
114 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
115 <td class="itemcode"><code>procedure <b><a  href="glBitmap.TglBitmapData.html#SaveBMP">SaveBMP</a></b>(const aStream: TStream);</code></td>
116 </tr>
117 <tr class="list2">
118 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
119 <td class="itemcode"><code>function <b><a  href="glBitmap.TglBitmapData.html#LoadTGA">LoadTGA</a></b>(const aStream: TStream): Boolean;</code></td>
120 </tr>
121 <tr class="list">
122 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
123 <td class="itemcode"><code>procedure <b><a  href="glBitmap.TglBitmapData.html#SaveTGA">SaveTGA</a></b>(const aStream: TStream);</code></td>
124 </tr>
125 <tr class="list2">
126 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
127 <td class="itemcode"><code>function <b><a  href="glBitmap.TglBitmapData.html#LoadDDS">LoadDDS</a></b>(const aStream: TStream): Boolean;</code></td>
128 </tr>
129 <tr class="list">
130 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
131 <td class="itemcode"><code>procedure <b><a  href="glBitmap.TglBitmapData.html#SaveDDS">SaveDDS</a></b>(const aStream: TStream);</code></td>
132 </tr>
133 <tr class="list2">
134 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
135 <td class="itemcode"><code>function <b><a  href="glBitmap.TglBitmapData.html#FlipHorz">FlipHorz</a></b>: Boolean; virtual;</code></td>
136 </tr>
137 <tr class="list">
138 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
139 <td class="itemcode"><code>function <b><a  href="glBitmap.TglBitmapData.html#FlipVert">FlipVert</a></b>: Boolean; virtual;</code></td>
140 </tr>
141 <tr class="list2">
142 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
143 <td class="itemcode"><code>procedure <b><a  href="glBitmap.TglBitmapData.html#LoadFromFile">LoadFromFile</a></b>(const aFilename: String);</code></td>
144 </tr>
145 <tr class="list">
146 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
147 <td class="itemcode"><code>procedure <b><a  href="glBitmap.TglBitmapData.html#LoadFromStream">LoadFromStream</a></b>(const aStream: TStream); virtual;</code></td>
148 </tr>
149 <tr class="list2">
150 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
151 <td class="itemcode"><code>procedure <b><a  href="glBitmap.TglBitmapData.html#LoadFromFunc">LoadFromFunc</a></b>(const aSize: <a  href="glBitmap.TglBitmapSize.html">TglBitmapSize</a>; const aFunc: <a  href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a>; const aFormat: <a  href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>; const aArgs: Pointer = nil);</code></td>
152 </tr>
153 <tr class="list">
154 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
155 <td class="itemcode"><code>procedure <b><a  href="glBitmap.TglBitmapData.html#LoadFromResource">LoadFromResource</a></b>(const aInstance: Cardinal; aResource: String; aResType: PChar = nil);</code></td>
156 </tr>
157 <tr class="list2">
158 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
159 <td class="itemcode"><code>procedure <b><a  href="glBitmap.TglBitmapData.html#LoadFromResourceID">LoadFromResourceID</a></b>(const aInstance: Cardinal; const aResourceID: Integer; const aResType: PChar);</code></td>
160 </tr>
161 <tr class="list">
162 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
163 <td class="itemcode"><code>procedure <b><a  href="glBitmap.TglBitmapData.html#SaveToFile">SaveToFile</a></b>(const aFilename: String; const aFileType: <a  href="glBitmap.html#TglBitmapFileType">TglBitmapFileType</a>);</code></td>
164 </tr>
165 <tr class="list2">
166 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
167 <td class="itemcode"><code>procedure <b><a  href="glBitmap.TglBitmapData.html#SaveToStream">SaveToStream</a></b>(const aStream: TStream; const aFileType: <a  href="glBitmap.html#TglBitmapFileType">TglBitmapFileType</a>); virtual;</code></td>
168 </tr>
169 <tr class="list">
170 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
171 <td class="itemcode"><code>function <b><a  href="glBitmap.TglBitmapData.html#Convert">Convert</a></b>(const aFunc: <a  href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a>; const aCreateTemp: Boolean; const aArgs: Pointer = nil): Boolean; overload;</code></td>
172 </tr>
173 <tr class="list2">
174 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
175 <td class="itemcode"><code>function <b><a  href="glBitmap.TglBitmapData.html#Convert">Convert</a></b>(const aSource: <a  href="glBitmap.TglBitmapData.html">TglBitmapData</a>; const aFunc: <a  href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a>; aCreateTemp: Boolean; const aFormat: <a  href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>; const aArgs: Pointer = nil): Boolean; overload;</code></td>
176 </tr>
177 <tr class="list">
178 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
179 <td class="itemcode"><code>function <b><a  href="glBitmap.TglBitmapData.html#ConvertTo">ConvertTo</a></b>(const aFormat: <a  href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>): Boolean; virtual;</code></td>
180 </tr>
181 <tr class="list2">
182 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
183 <td class="itemcode"><code>function <b><a  href="glBitmap.TglBitmapData.html#AssignToLazIntfImage">AssignToLazIntfImage</a></b>(const aImage: TLazIntfImage): Boolean;</code></td>
184 </tr>
185 <tr class="list">
186 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
187 <td class="itemcode"><code>function <b><a  href="glBitmap.TglBitmapData.html#AssignFromLazIntfImage">AssignFromLazIntfImage</a></b>(const aImage: TLazIntfImage): Boolean;</code></td>
188 </tr>
189 <tr class="list2">
190 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
191 <td class="itemcode"><code>function <b><a  href="glBitmap.TglBitmapData.html#AssignAlphaToLazIntfImage">AssignAlphaToLazIntfImage</a></b>(const aImage: TLazIntfImage): Boolean;</code></td>
192 </tr>
193 <tr class="list">
194 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
195 <td class="itemcode"><code>function <b><a  href="glBitmap.TglBitmapData.html#AddAlphaFromLazIntfImage">AddAlphaFromLazIntfImage</a></b>(const aImage: TLazIntfImage; const aFunc: <a  href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a> = nil; const aArgs: Pointer = nil): Boolean;</code></td>
196 </tr>
197 <tr class="list2">
198 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
199 <td class="itemcode"><code>function <b><a  href="glBitmap.TglBitmapData.html#AddAlphaFromResource">AddAlphaFromResource</a></b>(const aInstance: Cardinal; aResource: String; aResType: PChar = nil; const aFunc: <a  href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a> = nil; const aArgs: Pointer = nil): Boolean;</code></td>
200 </tr>
201 <tr class="list">
202 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
203 <td class="itemcode"><code>function <b><a  href="glBitmap.TglBitmapData.html#AddAlphaFromResourceID">AddAlphaFromResourceID</a></b>(const aInstance: Cardinal; const aResourceID: Integer; const aResType: PChar; const aFunc: <a  href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a> = nil; const aArgs: Pointer = nil): Boolean;</code></td>
204 </tr>
205 <tr class="list2">
206 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
207 <td class="itemcode"><code>function <b><a  href="glBitmap.TglBitmapData.html#AddAlphaFromFunc">AddAlphaFromFunc</a></b>(const aFunc: <a  href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a>; const aArgs: Pointer = nil): Boolean; virtual;</code></td>
208 </tr>
209 <tr class="list">
210 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
211 <td class="itemcode"><code>function <b><a  href="glBitmap.TglBitmapData.html#AddAlphaFromFile">AddAlphaFromFile</a></b>(const aFileName: String; const aFunc: <a  href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a> = nil; const aArgs: Pointer = nil): Boolean;</code></td>
212 </tr>
213 <tr class="list2">
214 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
215 <td class="itemcode"><code>function <b><a  href="glBitmap.TglBitmapData.html#AddAlphaFromStream">AddAlphaFromStream</a></b>(const aStream: TStream; const aFunc: <a  href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a> = nil; const aArgs: Pointer = nil): Boolean;</code></td>
216 </tr>
217 <tr class="list">
218 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
219 <td class="itemcode"><code>function <b><a  href="glBitmap.TglBitmapData.html#AddAlphaFromDataObj">AddAlphaFromDataObj</a></b>(const aDataObj: <a  href="glBitmap.TglBitmapData.html">TglBitmapData</a>; aFunc: <a  href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a>; const aArgs: Pointer): Boolean;</code></td>
220 </tr>
221 <tr class="list2">
222 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
223 <td class="itemcode"><code>function <b><a  href="glBitmap.TglBitmapData.html#AddAlphaFromColorKey">AddAlphaFromColorKey</a></b>(const aRed, aGreen, aBlue: Byte; const aDeviation: Byte = 0): Boolean;</code></td>
224 </tr>
225 <tr class="list">
226 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
227 <td class="itemcode"><code>function <b><a  href="glBitmap.TglBitmapData.html#AddAlphaFromColorKeyRange">AddAlphaFromColorKeyRange</a></b>(const aRed, aGreen, aBlue: Cardinal; const aDeviation: Cardinal = 0): Boolean;</code></td>
228 </tr>
229 <tr class="list2">
230 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
231 <td class="itemcode"><code>function <b><a  href="glBitmap.TglBitmapData.html#AddAlphaFromColorKeyFloat">AddAlphaFromColorKeyFloat</a></b>(const aRed, aGreen, aBlue: Single; const aDeviation: Single = 0): Boolean;</code></td>
232 </tr>
233 <tr class="list">
234 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
235 <td class="itemcode"><code>function <b><a  href="glBitmap.TglBitmapData.html#AddAlphaFromValue">AddAlphaFromValue</a></b>(const aAlpha: Byte): Boolean;</code></td>
236 </tr>
237 <tr class="list2">
238 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
239 <td class="itemcode"><code>function <b><a  href="glBitmap.TglBitmapData.html#AddAlphaFromValueRange">AddAlphaFromValueRange</a></b>(const aAlpha: Cardinal): Boolean;</code></td>
240 </tr>
241 <tr class="list">
242 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
243 <td class="itemcode"><code>function <b><a  href="glBitmap.TglBitmapData.html#AddAlphaFromValueFloat">AddAlphaFromValueFloat</a></b>(const aAlpha: Single): Boolean;</code></td>
244 </tr>
245 <tr class="list2">
246 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
247 <td class="itemcode"><code>function <b><a  href="glBitmap.TglBitmapData.html#RemoveAlpha">RemoveAlpha</a></b>: Boolean; virtual;</code></td>
248 </tr>
249 <tr class="list">
250 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
251 <td class="itemcode"><code>procedure <b><a  href="glBitmap.TglBitmapData.html#FillWithColor">FillWithColor</a></b>(const aRed, aGreen, aBlue: Byte; const aAlpha: Byte = 255);</code></td>
252 </tr>
253 <tr class="list2">
254 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
255 <td class="itemcode"><code>procedure <b><a  href="glBitmap.TglBitmapData.html#FillWithColorRange">FillWithColorRange</a></b>(const aRed, aGreen, aBlue: Cardinal; const aAlpha: Cardinal = $FFFFFFFF);</code></td>
256 </tr>
257 <tr class="list">
258 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
259 <td class="itemcode"><code>procedure <b><a  href="glBitmap.TglBitmapData.html#FillWithColorFloat">FillWithColorFloat</a></b>(const aRed, aGreen, aBlue: Single; const aAlpha: Single = 1.0);</code></td>
260 </tr>
261 <tr class="list2">
262 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
263 <td class="itemcode"><code>procedure <b><a  href="glBitmap.TglBitmapData.html#SetData">SetData</a></b>(const aData: PByte; const aFormat: <a  href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>; const aWidth: Integer = -1; const aHeight: Integer = -1); virtual;</code></td>
264 </tr>
265 <tr class="list">
266 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
267 <td class="itemcode"><code>function <b><a  href="glBitmap.TglBitmapData.html#Clone">Clone</a></b>: <a  href="glBitmap.TglBitmapData.html">TglBitmapData</a>;</code></td>
268 </tr>
269 <tr class="list2">
270 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
271 <td class="itemcode"><code>procedure <b><a  href="glBitmap.TglBitmapData.html#Invert">Invert</a></b>(const aRed, aGreen, aBlue, aAlpha: Boolean);</code></td>
272 </tr>
273 <tr class="list">
274 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
275 <td class="itemcode"><code>procedure <b><a  href="glBitmap.TglBitmapData.html#GenerateNormalMap">GenerateNormalMap</a></b>(const aFunc: <a  href="glBitmap.html#TglBitmapNormalMapFunc">TglBitmapNormalMapFunc</a> = nm3x3; const aScale: Single = 2; const aUseAlpha: Boolean = false);</code></td>
276 </tr>
277 <tr class="list2">
278 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
279 <td class="itemcode"><code>constructor <b><a  href="glBitmap.TglBitmapData.html#Create">Create</a></b>; overload;</code></td>
280 </tr>
281 <tr class="list">
282 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
283 <td class="itemcode"><code>constructor <b><a  href="glBitmap.TglBitmapData.html#Create">Create</a></b>(const aFileName: String); overload;</code></td>
284 </tr>
285 <tr class="list2">
286 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
287 <td class="itemcode"><code>constructor <b><a  href="glBitmap.TglBitmapData.html#Create">Create</a></b>(const aStream: TStream); overload;</code></td>
288 </tr>
289 <tr class="list">
290 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
291 <td class="itemcode"><code>constructor <b><a  href="glBitmap.TglBitmapData.html#Create">Create</a></b>(const aSize: <a  href="glBitmap.TglBitmapSize.html">TglBitmapSize</a>; const aFormat: <a  href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>; aData: PByte = nil); overload;</code></td>
292 </tr>
293 <tr class="list2">
294 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
295 <td class="itemcode"><code>constructor <b><a  href="glBitmap.TglBitmapData.html#Create">Create</a></b>(const aSize: <a  href="glBitmap.TglBitmapSize.html">TglBitmapSize</a>; const aFormat: <a  href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>; const aFunc: <a  href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a>; const aArgs: Pointer = nil); overload;</code></td>
296 </tr>
297 <tr class="list">
298 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
299 <td class="itemcode"><code>constructor <b><a  href="glBitmap.TglBitmapData.html#Create">Create</a></b>(const aInstance: Cardinal; const aResource: String; const aResType: PChar = nil); overload;</code></td>
300 </tr>
301 <tr class="list2">
302 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
303 <td class="itemcode"><code>constructor <b><a  href="glBitmap.TglBitmapData.html#Create">Create</a></b>(const aInstance: Cardinal; const aResourceID: Integer; const aResType: PChar); overload;</code></td>
304 </tr>
305 <tr class="list">
306 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
307 <td class="itemcode"><code>destructor <b><a  href="glBitmap.TglBitmapData.html#Destroy">Destroy</a></b>; override;</code></td>
308 </tr>
309 </table>
310 <a name="PasDoc-Properties"></a><h3 class="summary">Properties</h3>
311 <table class="summary wide_list">
312 <tr class="list">
313 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
314 <td class="itemcode"><code>property <b><a  href="glBitmap.TglBitmapData.html#Data">Data</a></b>: PByte           read <a  href="glBitmap.TglBitmapData.html#fData">fData</a>;</code></td>
315 </tr>
316 <tr class="list2">
317 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
318 <td class="itemcode"><code>property <b><a  href="glBitmap.TglBitmapData.html#Dimension">Dimension</a></b>: <a  href="glBitmap.TglBitmapSize.html">TglBitmapSize</a>   read <a  href="glBitmap.TglBitmapData.html#fDimension">fDimension</a>;</code></td>
319 </tr>
320 <tr class="list">
321 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
322 <td class="itemcode"><code>property <b><a  href="glBitmap.TglBitmapData.html#Filename">Filename</a></b>: String          read <a  href="glBitmap.TglBitmapData.html#fFilename">fFilename</a>;</code></td>
323 </tr>
324 <tr class="list2">
325 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
326 <td class="itemcode"><code>property <b><a  href="glBitmap.TglBitmapData.html#Width">Width</a></b>: Integer         read <a  href="glBitmap.TglBitmapData.html#GetWidth">GetWidth</a>;</code></td>
327 </tr>
328 <tr class="list">
329 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
330 <td class="itemcode"><code>property <b><a  href="glBitmap.TglBitmapData.html#Height">Height</a></b>: Integer         read <a  href="glBitmap.TglBitmapData.html#GetHeight">GetHeight</a>;</code></td>
331 </tr>
332 <tr class="list2">
333 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
334 <td class="itemcode"><code>property <b><a  href="glBitmap.TglBitmapData.html#Format">Format</a></b>: <a  href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a> read <a  href="glBitmap.TglBitmapData.html#fFormat">fFormat</a> write <a  href="glBitmap.TglBitmapData.html#SetFormat">SetFormat</a>;</code></td>
335 </tr>
336 <tr class="list">
337 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
338 <td class="itemcode"><code>property <b><a  href="glBitmap.TglBitmapData.html#Scanlines">Scanlines</a></b>[constaIndex:Integer]: PByte read <a  href="glBitmap.TglBitmapData.html#GetScanlines">GetScanlines</a>;</code></td>
339 </tr>
340 <tr class="list2">
341 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
342 <td class="itemcode"><code>property <b><a  href="glBitmap.TglBitmapData.html#FormatDescriptor">FormatDescriptor</a></b>: <a  href="glBitmap.TglBitmapFormatDescriptor.html">TglBitmapFormatDescriptor</a> read <a  href="glBitmap.TglBitmapData.html#GetFormatDescriptor">GetFormatDescriptor</a>;</code></td>
343 </tr>
344 </table>
345 <h2 class="description">Description</h2>
346 <h3 class="detail">Fields</h3>
347 <table class="detail wide_list">
348 <tr class="list">
349 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
350 <td class="itemcode"><a name="fData"></a><code><b>fData</b>: PByte;</code></td>
351 </tr>
352 <tr><td colspan="2">
353 <p>
354 texture data</p>
355 </td></tr>
356 </table>
357 <table class="detail wide_list">
358 <tr class="list">
359 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
360 <td class="itemcode"><a name="fDimension"></a><code><b>fDimension</b>: <a  href="glBitmap.TglBitmapSize.html">TglBitmapSize</a>;</code></td>
361 </tr>
362 <tr><td colspan="2">
363 <p>
364 pixel size of the data</p>
365 </td></tr>
366 </table>
367 <table class="detail wide_list">
368 <tr class="list">
369 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
370 <td class="itemcode"><a name="fFormat"></a><code><b>fFormat</b>: <a  href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>;</code></td>
371 </tr>
372 <tr><td colspan="2">
373 <p>
374 format the texture data is stored in</p>
375 </td></tr>
376 </table>
377 <table class="detail wide_list">
378 <tr class="list">
379 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
380 <td class="itemcode"><a name="fFilename"></a><code><b>fFilename</b>: String;</code></td>
381 </tr>
382 <tr><td colspan="2">
383 <p>
384 file the data was load from</p>
385 </td></tr>
386 </table>
387 <table class="detail wide_list">
388 <tr class="list">
389 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
390 <td class="itemcode"><a name="fScanlines"></a><code><b>fScanlines</b>:    array of PByte;</code></td>
391 </tr>
392 <tr><td colspan="2">
393 <p>
394 pointer to begin of each line</p>
395 </td></tr>
396 </table>
397 <table class="detail wide_list">
398 <tr class="list">
399 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
400 <td class="itemcode"><a name="fHasScanlines"></a><code><b>fHasScanlines</b>: Boolean;</code></td>
401 </tr>
402 <tr><td colspan="2">
403 <p>
404 <code>True</code> if scanlines are initialized, <code>False</code> otherwise</p>
405 </td></tr>
406 </table>
407 <h3 class="detail">Methods</h3>
408 <table class="detail wide_list">
409 <tr class="list">
410 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
411 <td class="itemcode"><a name="GetFormatDescriptor"></a><code>function <b>GetFormatDescriptor</b>: <a  href="glBitmap.TglBitmapFormatDescriptor.html">TglBitmapFormatDescriptor</a>;</code></td>
412 </tr>
413 <tr><td colspan="2">
414 &nbsp;<h6 class="description_section">Returns</h6>
415 <p class="return">the format descriptor suitable to the texture data format</p></td></tr>
416 </table>
417 <table class="detail wide_list">
418 <tr class="list">
419 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
420 <td class="itemcode"><a name="GetWidth"></a><code>function <b>GetWidth</b>: Integer;</code></td>
421 </tr>
422 <tr><td colspan="2">
423 &nbsp;<h6 class="description_section">Returns</h6>
424 <p class="return">the width of the texture data (in pixel) or -1 if no data is set</p></td></tr>
425 </table>
426 <table class="detail wide_list">
427 <tr class="list">
428 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
429 <td class="itemcode"><a name="GetHeight"></a><code>function <b>GetHeight</b>: Integer;</code></td>
430 </tr>
431 <tr><td colspan="2">
432 &nbsp;<h6 class="description_section">Returns</h6>
433 <p class="return">the height of the texture data (in pixel) or -1 if no data is set</p></td></tr>
434 </table>
435 <table class="detail wide_list">
436 <tr class="list">
437 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
438 <td class="itemcode"><a name="GetScanlines"></a><code>function <b>GetScanlines</b>(const aIndex: Integer): PByte;</code></td>
439 </tr>
440 <tr><td colspan="2">
441 <p>
442 get scanline at index aIndex </p>
443 <h6 class="description_section">Returns</h6>
444 <p class="return">Pointer to start of line or <code>Nil</code></p></td></tr>
445 </table>
446 <table class="detail wide_list">
447 <tr class="list">
448 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
449 <td class="itemcode"><a name="SetFormat"></a><code>procedure <b>SetFormat</b>(const aValue: <a  href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>);</code></td>
450 </tr>
451 <tr><td colspan="2">
452 <p>
453 set new value for the data format. only possible if new format has the same pixel size. if you want to convert the texture data, see ConvertTo function</p>
454 </td></tr>
455 </table>
456 <table class="detail wide_list">
457 <tr class="list">
458 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
459 <td class="itemcode"><a name="PrepareResType"></a><code>procedure <b>PrepareResType</b>(var aResource: String; var aResType: PChar);</code></td>
460 </tr>
461 <tr><td colspan="2">
462 <p>
463 splits a resource identifier into the resource and it's type  </p>
464 <h6 class="description_section">Parameters</h6>
465 <dl class="parameters">
466 <dt>aResource</dt>
467 <dd>resource identifier to split and store name in</dd>
468 <dt>aResType</dt>
469 <dd>type of the resource</dd>
470 </dl>
471 </td></tr>
472 </table>
473 <table class="detail wide_list">
474 <tr class="list">
475 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
476 <td class="itemcode"><a name="UpdateScanlines"></a><code>procedure <b>UpdateScanlines</b>;</code></td>
477 </tr>
478 <tr><td colspan="2">
479 <p>
480 updates scanlines array</p>
481 </td></tr>
482 </table>
483 <table class="detail wide_list">
484 <tr class="list">
485 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
486 <td class="itemcode"><a name="LoadPNG"></a><code>function <b>LoadPNG</b>(const aStream: TStream): Boolean; virtual;</code></td>
487 </tr>
488 <tr><td colspan="2">
489 <p>
490 try to load a PNG from a stream  </p>
491 <h6 class="description_section">Parameters</h6>
492 <dl class="parameters">
493 <dt>aStream</dt>
494 <dd>stream to load PNG from</dd>
495 </dl>
496 <h6 class="description_section">Returns</h6>
497 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
498 </table>
499 <table class="detail wide_list">
500 <tr class="list">
501 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
502 <td class="itemcode"><a name="SavePNG"></a><code>procedure <b>SavePNG</b>(const aStream: TStream); virtual;</code></td>
503 </tr>
504 <tr><td colspan="2">
505 <p>
506 save texture data as PNG to stream </p>
507 <h6 class="description_section">Parameters</h6>
508 <dl class="parameters">
509 <dt>aStream</dt>
510 <dd>stream to save data to</dd>
511 </dl>
512 </td></tr>
513 </table>
514 <table class="detail wide_list">
515 <tr class="list">
516 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
517 <td class="itemcode"><a name="LoadJPEG"></a><code>function <b>LoadJPEG</b>(const aStream: TStream): Boolean; virtual;</code></td>
518 </tr>
519 <tr><td colspan="2">
520 <p>
521 try to load a JPEG from a stream  </p>
522 <h6 class="description_section">Parameters</h6>
523 <dl class="parameters">
524 <dt>aStream</dt>
525 <dd>stream to load JPEG from</dd>
526 </dl>
527 <h6 class="description_section">Returns</h6>
528 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
529 </table>
530 <table class="detail wide_list">
531 <tr class="list">
532 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
533 <td class="itemcode"><a name="SaveJPEG"></a><code>procedure <b>SaveJPEG</b>(const aStream: TStream); virtual;</code></td>
534 </tr>
535 <tr><td colspan="2">
536 <p>
537 save texture data as JPEG to stream </p>
538 <h6 class="description_section">Parameters</h6>
539 <dl class="parameters">
540 <dt>aStream</dt>
541 <dd>stream to save data to</dd>
542 </dl>
543 </td></tr>
544 </table>
545 <table class="detail wide_list">
546 <tr class="list">
547 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
548 <td class="itemcode"><a name="LoadRAW"></a><code>function <b>LoadRAW</b>(const aStream: TStream): Boolean;</code></td>
549 </tr>
550 <tr><td colspan="2">
551 <p>
552 try to load a RAW image from a stream  </p>
553 <h6 class="description_section">Parameters</h6>
554 <dl class="parameters">
555 <dt>aStream</dt>
556 <dd>stream to load RAW image from</dd>
557 </dl>
558 <h6 class="description_section">Returns</h6>
559 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
560 </table>
561 <table class="detail wide_list">
562 <tr class="list">
563 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
564 <td class="itemcode"><a name="SaveRAW"></a><code>procedure <b>SaveRAW</b>(const aStream: TStream);</code></td>
565 </tr>
566 <tr><td colspan="2">
567 <p>
568 save texture data as RAW image to stream </p>
569 <h6 class="description_section">Parameters</h6>
570 <dl class="parameters">
571 <dt>aStream</dt>
572 <dd>stream to save data to</dd>
573 </dl>
574 </td></tr>
575 </table>
576 <table class="detail wide_list">
577 <tr class="list">
578 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
579 <td class="itemcode"><a name="LoadBMP"></a><code>function <b>LoadBMP</b>(const aStream: TStream): Boolean;</code></td>
580 </tr>
581 <tr><td colspan="2">
582 <p>
583 try to load a BMP from a stream  </p>
584 <h6 class="description_section">Parameters</h6>
585 <dl class="parameters">
586 <dt>aStream</dt>
587 <dd>stream to load BMP from</dd>
588 </dl>
589 <h6 class="description_section">Returns</h6>
590 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
591 </table>
592 <table class="detail wide_list">
593 <tr class="list">
594 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
595 <td class="itemcode"><a name="SaveBMP"></a><code>procedure <b>SaveBMP</b>(const aStream: TStream);</code></td>
596 </tr>
597 <tr><td colspan="2">
598 <p>
599 save texture data as BMP to stream </p>
600 <h6 class="description_section">Parameters</h6>
601 <dl class="parameters">
602 <dt>aStream</dt>
603 <dd>stream to save data to</dd>
604 </dl>
605 </td></tr>
606 </table>
607 <table class="detail wide_list">
608 <tr class="list">
609 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
610 <td class="itemcode"><a name="LoadTGA"></a><code>function <b>LoadTGA</b>(const aStream: TStream): Boolean;</code></td>
611 </tr>
612 <tr><td colspan="2">
613 <p>
614 try to load a TGA from a stream  </p>
615 <h6 class="description_section">Parameters</h6>
616 <dl class="parameters">
617 <dt>aStream</dt>
618 <dd>stream to load TGA from</dd>
619 </dl>
620 <h6 class="description_section">Returns</h6>
621 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
622 </table>
623 <table class="detail wide_list">
624 <tr class="list">
625 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
626 <td class="itemcode"><a name="SaveTGA"></a><code>procedure <b>SaveTGA</b>(const aStream: TStream);</code></td>
627 </tr>
628 <tr><td colspan="2">
629 <p>
630 save texture data as TGA to stream </p>
631 <h6 class="description_section">Parameters</h6>
632 <dl class="parameters">
633 <dt>aStream</dt>
634 <dd>stream to save data to</dd>
635 </dl>
636 </td></tr>
637 </table>
638 <table class="detail wide_list">
639 <tr class="list">
640 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
641 <td class="itemcode"><a name="LoadDDS"></a><code>function <b>LoadDDS</b>(const aStream: TStream): Boolean;</code></td>
642 </tr>
643 <tr><td colspan="2">
644 <p>
645 try to load a DDS from a stream  </p>
646 <h6 class="description_section">Parameters</h6>
647 <dl class="parameters">
648 <dt>aStream</dt>
649 <dd>stream to load DDS from</dd>
650 </dl>
651 <h6 class="description_section">Returns</h6>
652 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
653 </table>
654 <table class="detail wide_list">
655 <tr class="list">
656 <td class="visibility"><a  href="legend.html"><img  src="private.gif" alt="Private" title="Private"></a></td>
657 <td class="itemcode"><a name="SaveDDS"></a><code>procedure <b>SaveDDS</b>(const aStream: TStream);</code></td>
658 </tr>
659 <tr><td colspan="2">
660 <p>
661 save texture data as DDS to stream </p>
662 <h6 class="description_section">Parameters</h6>
663 <dl class="parameters">
664 <dt>aStream</dt>
665 <dd>stream to save data to</dd>
666 </dl>
667 </td></tr>
668 </table>
669 <table class="detail wide_list">
670 <tr class="list">
671 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
672 <td class="itemcode"><a name="FlipHorz"></a><code>function <b>FlipHorz</b>: Boolean; virtual;</code></td>
673 </tr>
674 <tr><td colspan="2">
675 <p>
676 flip texture horizontal </p>
677 <h6 class="description_section">Returns</h6>
678 <p class="return"><code>True</code> in success, <code>False</code> otherwise</p></td></tr>
679 </table>
680 <table class="detail wide_list">
681 <tr class="list">
682 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
683 <td class="itemcode"><a name="FlipVert"></a><code>function <b>FlipVert</b>: Boolean; virtual;</code></td>
684 </tr>
685 <tr><td colspan="2">
686 <p>
687 flip texture vertical </p>
688 <h6 class="description_section">Returns</h6>
689 <p class="return"><code>True</code> in success, <code>False</code> otherwise</p></td></tr>
690 </table>
691 <table class="detail wide_list">
692 <tr class="list">
693 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
694 <td class="itemcode"><a name="LoadFromFile"></a><code>procedure <b>LoadFromFile</b>(const aFilename: String);</code></td>
695 </tr>
696 <tr><td colspan="2">
697 <p>
698 load a texture from a file </p>
699 <h6 class="description_section">Parameters</h6>
700 <dl class="parameters">
701 <dt>aFilename</dt>
702 <dd>file to load texuture from</dd>
703 </dl>
704 </td></tr>
705 </table>
706 <table class="detail wide_list">
707 <tr class="list">
708 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
709 <td class="itemcode"><a name="LoadFromStream"></a><code>procedure <b>LoadFromStream</b>(const aStream: TStream); virtual;</code></td>
710 </tr>
711 <tr><td colspan="2">
712 <p>
713 load a texture from a stream </p>
714 <h6 class="description_section">Parameters</h6>
715 <dl class="parameters">
716 <dt>aStream</dt>
717 <dd>stream to load texture from</dd>
718 </dl>
719 </td></tr>
720 </table>
721 <table class="detail wide_list">
722 <tr class="list">
723 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
724 <td class="itemcode"><a name="LoadFromFunc"></a><code>procedure <b>LoadFromFunc</b>(const aSize: <a  href="glBitmap.TglBitmapSize.html">TglBitmapSize</a>; const aFunc: <a  href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a>; const aFormat: <a  href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>; const aArgs: Pointer = nil);</code></td>
725 </tr>
726 <tr><td colspan="2">
727 <p>
728 use a function to generate texture data    </p>
729 <h6 class="description_section">Parameters</h6>
730 <dl class="parameters">
731 <dt>aSize</dt>
732 <dd>size of the texture</dd>
733 <dt>aFunc</dt>
734 <dd>callback to use for generation</dd>
735 <dt>aFormat</dt>
736 <dd>format of the texture data</dd>
737 <dt>aArgs</dt>
738 <dd>user defined paramaters (use at will)</dd>
739 </dl>
740 </td></tr>
741 </table>
742 <table class="detail wide_list">
743 <tr class="list">
744 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
745 <td class="itemcode"><a name="LoadFromResource"></a><code>procedure <b>LoadFromResource</b>(const aInstance: Cardinal; aResource: String; aResType: PChar = nil);</code></td>
746 </tr>
747 <tr><td colspan="2">
748 <p>
749 load a texture from a resource   </p>
750 <h6 class="description_section">Parameters</h6>
751 <dl class="parameters">
752 <dt>aInstance</dt>
753 <dd>resource handle</dd>
754 <dt>aResource</dt>
755 <dd>resource indentifier</dd>
756 <dt>aResType</dt>
757 <dd>resource type (if known)</dd>
758 </dl>
759 </td></tr>
760 </table>
761 <table class="detail wide_list">
762 <tr class="list">
763 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
764 <td class="itemcode"><a name="LoadFromResourceID"></a><code>procedure <b>LoadFromResourceID</b>(const aInstance: Cardinal; const aResourceID: Integer; const aResType: PChar);</code></td>
765 </tr>
766 <tr><td colspan="2">
767 <p>
768 load a texture from a resource id   </p>
769 <h6 class="description_section">Parameters</h6>
770 <dl class="parameters">
771 <dt>aInstance</dt>
772 <dd>resource handle</dd>
773 <dt>aResource</dt>
774 <dd>resource ID</dd>
775 <dt>aResType</dt>
776 <dd>resource type</dd>
777 </dl>
778 </td></tr>
779 </table>
780 <table class="detail wide_list">
781 <tr class="list">
782 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
783 <td class="itemcode"><a name="SaveToFile"></a><code>procedure <b>SaveToFile</b>(const aFilename: String; const aFileType: <a  href="glBitmap.html#TglBitmapFileType">TglBitmapFileType</a>);</code></td>
784 </tr>
785 <tr><td colspan="2">
786 <p>
787 save texture data to a file  </p>
788 <h6 class="description_section">Parameters</h6>
789 <dl class="parameters">
790 <dt>aFilename</dt>
791 <dd>filename to store texture in</dd>
792 <dt>aFileType</dt>
793 <dd>file type to store data into</dd>
794 </dl>
795 </td></tr>
796 </table>
797 <table class="detail wide_list">
798 <tr class="list">
799 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
800 <td class="itemcode"><a name="SaveToStream"></a><code>procedure <b>SaveToStream</b>(const aStream: TStream; const aFileType: <a  href="glBitmap.html#TglBitmapFileType">TglBitmapFileType</a>); virtual;</code></td>
801 </tr>
802 <tr><td colspan="2">
803 <p>
804 save texture data to a stream  </p>
805 <h6 class="description_section">Parameters</h6>
806 <dl class="parameters">
807 <dt>aFilename</dt>
808 <dd>filename to store texture in</dd>
809 <dt>aFileType</dt>
810 <dd>file type to store data into</dd>
811 </dl>
812 </td></tr>
813 </table>
814 <table class="detail wide_list">
815 <tr class="list">
816 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
817 <td class="itemcode"><a name="Convert"></a><code>function <b>Convert</b>(const aFunc: <a  href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a>; const aCreateTemp: Boolean; const aArgs: Pointer = nil): Boolean; overload;</code></td>
818 </tr>
819 <tr><td colspan="2">
820 <p>
821 convert texture data using a user defined callback    </p>
822 <h6 class="description_section">Parameters</h6>
823 <dl class="parameters">
824 <dt>aFunc</dt>
825 <dd>callback to use for converting</dd>
826 <dt>aCreateTemp</dt>
827 <dd>create a temporary buffer to use for converting</dd>
828 <dt>aArgs</dt>
829 <dd>user defined paramters (use at will)</dd>
830 </dl>
831 <h6 class="description_section">Returns</h6>
832 <p class="return"><code>True</code> if converting was successful, <code>False</code> otherwise</p></td></tr>
833 </table>
834 <table class="detail wide_list">
835 <tr class="list">
836 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
837 <td class="itemcode"><a name="Convert"></a><code>function <b>Convert</b>(const aSource: <a  href="glBitmap.TglBitmapData.html">TglBitmapData</a>; const aFunc: <a  href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a>; aCreateTemp: Boolean; const aFormat: <a  href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>; const aArgs: Pointer = nil): Boolean; overload;</code></td>
838 </tr>
839 <tr><td colspan="2">
840 <p>
841 convert texture data using a user defined callback      </p>
842 <h6 class="description_section">Parameters</h6>
843 <dl class="parameters">
844 <dt>aSource</dt>
845 <dd>glBitmap to read data from</dd>
846 <dt>aFunc</dt>
847 <dd>callback to use for converting</dd>
848 <dt>aCreateTemp</dt>
849 <dd>create a temporary buffer to use for converting</dd>
850 <dt>aFormat</dt>
851 <dd>format of the new data</dd>
852 <dt>aArgs</dt>
853 <dd>user defined paramters (use at will)</dd>
854 </dl>
855 <h6 class="description_section">Returns</h6>
856 <p class="return"><code>True</code> if converting was successful, <code>False</code> otherwise</p></td></tr>
857 </table>
858 <table class="detail wide_list">
859 <tr class="list">
860 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
861 <td class="itemcode"><a name="ConvertTo"></a><code>function <b>ConvertTo</b>(const aFormat: <a  href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>): Boolean; virtual;</code></td>
862 </tr>
863 <tr><td colspan="2">
864 <p>
865 convert texture data using a specific format  </p>
866 <h6 class="description_section">Parameters</h6>
867 <dl class="parameters">
868 <dt>aFormat</dt>
869 <dd>new format of texture data</dd>
870 </dl>
871 <h6 class="description_section">Returns</h6>
872 <p class="return"><code>True</code> if converting was successful, <code>False</code> otherwise</p></td></tr>
873 </table>
874 <table class="detail wide_list">
875 <tr class="list">
876 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
877 <td class="itemcode"><a name="AssignToLazIntfImage"></a><code>function <b>AssignToLazIntfImage</b>(const aImage: TLazIntfImage): Boolean;</code></td>
878 </tr>
879 <tr><td colspan="2">
880 <p>
881 assign texture data to TLazIntfImage object  </p>
882 <h6 class="description_section">Parameters</h6>
883 <dl class="parameters">
884 <dt>aImage</dt>
885 <dd>TLazIntfImage to write data to</dd>
886 </dl>
887 <h6 class="description_section">Returns</h6>
888 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
889 </table>
890 <table class="detail wide_list">
891 <tr class="list">
892 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
893 <td class="itemcode"><a name="AssignFromLazIntfImage"></a><code>function <b>AssignFromLazIntfImage</b>(const aImage: TLazIntfImage): Boolean;</code></td>
894 </tr>
895 <tr><td colspan="2">
896 <p>
897 assign texture data from TLazIntfImage object  </p>
898 <h6 class="description_section">Parameters</h6>
899 <dl class="parameters">
900 <dt>aImage</dt>
901 <dd>TLazIntfImage to read data from</dd>
902 </dl>
903 <h6 class="description_section">Returns</h6>
904 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
905 </table>
906 <table class="detail wide_list">
907 <tr class="list">
908 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
909 <td class="itemcode"><a name="AssignAlphaToLazIntfImage"></a><code>function <b>AssignAlphaToLazIntfImage</b>(const aImage: TLazIntfImage): Boolean;</code></td>
910 </tr>
911 <tr><td colspan="2">
912 <p>
913 assign alpha channel data to TLazIntfImage object  </p>
914 <h6 class="description_section">Parameters</h6>
915 <dl class="parameters">
916 <dt>aImage</dt>
917 <dd>TLazIntfImage to write data to</dd>
918 </dl>
919 <h6 class="description_section">Returns</h6>
920 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
921 </table>
922 <table class="detail wide_list">
923 <tr class="list">
924 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
925 <td class="itemcode"><a name="AddAlphaFromLazIntfImage"></a><code>function <b>AddAlphaFromLazIntfImage</b>(const aImage: TLazIntfImage; const aFunc: <a  href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a> = nil; const aArgs: Pointer = nil): Boolean;</code></td>
926 </tr>
927 <tr><td colspan="2">
928 <p>
929 assign alpha channel data from TLazIntfImage object    </p>
930 <h6 class="description_section">Parameters</h6>
931 <dl class="parameters">
932 <dt>aImage</dt>
933 <dd>TLazIntfImage to read data from</dd>
934 <dt>aFunc</dt>
935 <dd>callback to use for converting</dd>
936 <dt>aArgs</dt>
937 <dd>user defined parameters (use at will)</dd>
938 </dl>
939 <h6 class="description_section">Returns</h6>
940 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
941 </table>
942 <table class="detail wide_list">
943 <tr class="list">
944 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
945 <td class="itemcode"><a name="AddAlphaFromResource"></a><code>function <b>AddAlphaFromResource</b>(const aInstance: Cardinal; aResource: String; aResType: PChar = nil; const aFunc: <a  href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a> = nil; const aArgs: Pointer = nil): Boolean;</code></td>
946 </tr>
947 <tr><td colspan="2">
948 <p>
949 load alpha channel data from resource      </p>
950 <h6 class="description_section">Parameters</h6>
951 <dl class="parameters">
952 <dt>aInstance</dt>
953 <dd>resource handle</dd>
954 <dt>aResource</dt>
955 <dd>resource ID</dd>
956 <dt>aResType</dt>
957 <dd>resource type</dd>
958 <dt>aFunc</dt>
959 <dd>callback to use for converting</dd>
960 <dt>aArgs</dt>
961 <dd>user defined parameters (use at will)</dd>
962 </dl>
963 <h6 class="description_section">Returns</h6>
964 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
965 </table>
966 <table class="detail wide_list">
967 <tr class="list">
968 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
969 <td class="itemcode"><a name="AddAlphaFromResourceID"></a><code>function <b>AddAlphaFromResourceID</b>(const aInstance: Cardinal; const aResourceID: Integer; const aResType: PChar; const aFunc: <a  href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a> = nil; const aArgs: Pointer = nil): Boolean;</code></td>
970 </tr>
971 <tr><td colspan="2">
972 <p>
973 load alpha channel data from resource ID      </p>
974 <h6 class="description_section">Parameters</h6>
975 <dl class="parameters">
976 <dt>aInstance</dt>
977 <dd>resource handle</dd>
978 <dt>aResourceID</dt>
979 <dd>resource ID</dd>
980 <dt>aResType</dt>
981 <dd>resource type</dd>
982 <dt>aFunc</dt>
983 <dd>callback to use for converting</dd>
984 <dt>aArgs</dt>
985 <dd>user defined parameters (use at will)</dd>
986 </dl>
987 <h6 class="description_section">Returns</h6>
988 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
989 </table>
990 <table class="detail wide_list">
991 <tr class="list">
992 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
993 <td class="itemcode"><a name="AddAlphaFromFunc"></a><code>function <b>AddAlphaFromFunc</b>(const aFunc: <a  href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a>; const aArgs: Pointer = nil): Boolean; virtual;</code></td>
994 </tr>
995 <tr><td colspan="2">
996 <p>
997 add alpha channel data from function   </p>
998 <h6 class="description_section">Parameters</h6>
999 <dl class="parameters">
1000 <dt>aFunc</dt>
1001 <dd>callback to get data from</dd>
1002 <dt>aArgs</dt>
1003 <dd>user defined parameters (use at will)</dd>
1004 </dl>
1005 <h6 class="description_section">Returns</h6>
1006 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
1007 </table>
1008 <table class="detail wide_list">
1009 <tr class="list">
1010 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
1011 <td class="itemcode"><a name="AddAlphaFromFile"></a><code>function <b>AddAlphaFromFile</b>(const aFileName: String; const aFunc: <a  href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a> = nil; const aArgs: Pointer = nil): Boolean;</code></td>
1012 </tr>
1013 <tr><td colspan="2">
1014 <p>
1015 add alpha channel data from file (macro for: new glBitmap, LoadFromFile, AddAlphaFromGlBitmap)    </p>
1016 <h6 class="description_section">Parameters</h6>
1017 <dl class="parameters">
1018 <dt>aFilename</dt>
1019 <dd>file to load alpha channel data from</dd>
1020 <dt>aFunc</dt>
1021 <dd>callback to use for converting</dd>
1022 <dt>aArgs</dt>
1023 <dd>SetFormat user defined parameters (use at will)</dd>
1024 </dl>
1025 <h6 class="description_section">Returns</h6>
1026 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
1027 </table>
1028 <table class="detail wide_list">
1029 <tr class="list">
1030 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
1031 <td class="itemcode"><a name="AddAlphaFromStream"></a><code>function <b>AddAlphaFromStream</b>(const aStream: TStream; const aFunc: <a  href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a> = nil; const aArgs: Pointer = nil): Boolean;</code></td>
1032 </tr>
1033 <tr><td colspan="2">
1034 <p>
1035 add alpha channel data from stream (macro for: new glBitmap, LoadFromStream, AddAlphaFromGlBitmap)    </p>
1036 <h6 class="description_section">Parameters</h6>
1037 <dl class="parameters">
1038 <dt>aStream</dt>
1039 <dd>stream to load alpha channel data from</dd>
1040 <dt>aFunc</dt>
1041 <dd>callback to use for converting</dd>
1042 <dt>aArgs</dt>
1043 <dd>user defined parameters (use at will)</dd>
1044 </dl>
1045 <h6 class="description_section">Returns</h6>
1046 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
1047 </table>
1048 <table class="detail wide_list">
1049 <tr class="list">
1050 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
1051 <td class="itemcode"><a name="AddAlphaFromDataObj"></a><code>function <b>AddAlphaFromDataObj</b>(const aDataObj: <a  href="glBitmap.TglBitmapData.html">TglBitmapData</a>; aFunc: <a  href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a>; const aArgs: Pointer): Boolean;</code></td>
1052 </tr>
1053 <tr><td colspan="2">
1054 <p>
1055 add alpha channel data from existing glBitmap object    </p>
1056 <h6 class="description_section">Parameters</h6>
1057 <dl class="parameters">
1058 <dt>aBitmap</dt>
1059 <dd>TglBitmap to copy alpha channel data from</dd>
1060 <dt>aFunc</dt>
1061 <dd>callback to use for converting</dd>
1062 <dt>aArgs</dt>
1063 <dd>user defined parameters (use at will)</dd>
1064 </dl>
1065 <h6 class="description_section">Returns</h6>
1066 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
1067 </table>
1068 <table class="detail wide_list">
1069 <tr class="list">
1070 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
1071 <td class="itemcode"><a name="AddAlphaFromColorKey"></a><code>function <b>AddAlphaFromColorKey</b>(const aRed, aGreen, aBlue: Byte; const aDeviation: Byte = 0): Boolean;</code></td>
1072 </tr>
1073 <tr><td colspan="2">
1074 <p>
1075 add alpha to pixel if the pixels color is greter than the given color value     </p>
1076 <h6 class="description_section">Parameters</h6>
1077 <dl class="parameters">
1078 <dt>aRed</dt>
1079 <dd>red threshold (0-255)</dd>
1080 <dt>aGreen</dt>
1081 <dd>green threshold (0-255)</dd>
1082 <dt>aBlue</dt>
1083 <dd>blue threshold (0-255)</dd>
1084 <dt>aDeviatation</dt>
1085 <dd>accepted deviatation (0-255)</dd>
1086 </dl>
1087 <h6 class="description_section">Returns</h6>
1088 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
1089 </table>
1090 <table class="detail wide_list">
1091 <tr class="list">
1092 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
1093 <td class="itemcode"><a name="AddAlphaFromColorKeyRange"></a><code>function <b>AddAlphaFromColorKeyRange</b>(const aRed, aGreen, aBlue: Cardinal; const aDeviation: Cardinal = 0): Boolean;</code></td>
1094 </tr>
1095 <tr><td colspan="2">
1096 <p>
1097 add alpha to pixel if the pixels color is greter than the given color value     </p>
1098 <h6 class="description_section">Parameters</h6>
1099 <dl class="parameters">
1100 <dt>aRed</dt>
1101 <dd>red threshold (0-Range.r)</dd>
1102 <dt>aGreen</dt>
1103 <dd>green threshold (0-Range.g)</dd>
1104 <dt>aBlue</dt>
1105 <dd>blue threshold (0-Range.b)</dd>
1106 <dt>aDeviatation</dt>
1107 <dd>accepted deviatation (0-max(Range.rgb))</dd>
1108 </dl>
1109 <h6 class="description_section">Returns</h6>
1110 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
1111 </table>
1112 <table class="detail wide_list">
1113 <tr class="list">
1114 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
1115 <td class="itemcode"><a name="AddAlphaFromColorKeyFloat"></a><code>function <b>AddAlphaFromColorKeyFloat</b>(const aRed, aGreen, aBlue: Single; const aDeviation: Single = 0): Boolean;</code></td>
1116 </tr>
1117 <tr><td colspan="2">
1118 <p>
1119 add alpha to pixel if the pixels color is greter than the given color value     </p>
1120 <h6 class="description_section">Parameters</h6>
1121 <dl class="parameters">
1122 <dt>aRed</dt>
1123 <dd>red threshold (0.0-1.0)</dd>
1124 <dt>aGreen</dt>
1125 <dd>green threshold (0.0-1.0)</dd>
1126 <dt>aBlue</dt>
1127 <dd>blue threshold (0.0-1.0)</dd>
1128 <dt>aDeviatation</dt>
1129 <dd>accepted deviatation (0.0-1.0)</dd>
1130 </dl>
1131 <h6 class="description_section">Returns</h6>
1132 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
1133 </table>
1134 <table class="detail wide_list">
1135 <tr class="list">
1136 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
1137 <td class="itemcode"><a name="AddAlphaFromValue"></a><code>function <b>AddAlphaFromValue</b>(const aAlpha: Byte): Boolean;</code></td>
1138 </tr>
1139 <tr><td colspan="2">
1140 <p>
1141 add a constand alpha value to all pixels  </p>
1142 <h6 class="description_section">Parameters</h6>
1143 <dl class="parameters">
1144 <dt>aAlpha</dt>
1145 <dd>alpha value to add (0-255)</dd>
1146 </dl>
1147 <h6 class="description_section">Returns</h6>
1148 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
1149 </table>
1150 <table class="detail wide_list">
1151 <tr class="list">
1152 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
1153 <td class="itemcode"><a name="AddAlphaFromValueRange"></a><code>function <b>AddAlphaFromValueRange</b>(const aAlpha: Cardinal): Boolean;</code></td>
1154 </tr>
1155 <tr><td colspan="2">
1156 <p>
1157 add a constand alpha value to all pixels  </p>
1158 <h6 class="description_section">Parameters</h6>
1159 <dl class="parameters">
1160 <dt>aAlpha</dt>
1161 <dd>alpha value to add (0-max(Range.rgb))</dd>
1162 </dl>
1163 <h6 class="description_section">Returns</h6>
1164 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
1165 </table>
1166 <table class="detail wide_list">
1167 <tr class="list">
1168 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
1169 <td class="itemcode"><a name="AddAlphaFromValueFloat"></a><code>function <b>AddAlphaFromValueFloat</b>(const aAlpha: Single): Boolean;</code></td>
1170 </tr>
1171 <tr><td colspan="2">
1172 <p>
1173 add a constand alpha value to all pixels  </p>
1174 <h6 class="description_section">Parameters</h6>
1175 <dl class="parameters">
1176 <dt>aAlpha</dt>
1177 <dd>alpha value to add (0.0-1.0)</dd>
1178 </dl>
1179 <h6 class="description_section">Returns</h6>
1180 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
1181 </table>
1182 <table class="detail wide_list">
1183 <tr class="list">
1184 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
1185 <td class="itemcode"><a name="RemoveAlpha"></a><code>function <b>RemoveAlpha</b>: Boolean; virtual;</code></td>
1186 </tr>
1187 <tr><td colspan="2">
1188 <p>
1189 remove alpha channel </p>
1190 <h6 class="description_section">Returns</h6>
1191 <p class="return"><code>True</code> on success, <code>False</code> otherwise</p></td></tr>
1192 </table>
1193 <table class="detail wide_list">
1194 <tr class="list">
1195 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
1196 <td class="itemcode"><a name="FillWithColor"></a><code>procedure <b>FillWithColor</b>(const aRed, aGreen, aBlue: Byte; const aAlpha: Byte = 255);</code></td>
1197 </tr>
1198 <tr><td colspan="2">
1199 <p>
1200 fill complete texture with one color    </p>
1201 <h6 class="description_section">Parameters</h6>
1202 <dl class="parameters">
1203 <dt>aRed</dt>
1204 <dd>red color for border (0-255)</dd>
1205 <dt>aGreen</dt>
1206 <dd>green color for border (0-255)</dd>
1207 <dt>aBlue</dt>
1208 <dd>blue color for border (0-255)</dd>
1209 <dt>aAlpha</dt>
1210 <dd>alpha color for border (0-255)</dd>
1211 </dl>
1212 </td></tr>
1213 </table>
1214 <table class="detail wide_list">
1215 <tr class="list">
1216 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
1217 <td class="itemcode"><a name="FillWithColorRange"></a><code>procedure <b>FillWithColorRange</b>(const aRed, aGreen, aBlue: Cardinal; const aAlpha: Cardinal = $FFFFFFFF);</code></td>
1218 </tr>
1219 <tr><td colspan="2">
1220 <p>
1221 fill complete texture with one color    </p>
1222 <h6 class="description_section">Parameters</h6>
1223 <dl class="parameters">
1224 <dt>aRed</dt>
1225 <dd>red color for border (0-Range.r)</dd>
1226 <dt>aGreen</dt>
1227 <dd>green color for border (0-Range.g)</dd>
1228 <dt>aBlue</dt>
1229 <dd>blue color for border (0-Range.b)</dd>
1230 <dt>aAlpha</dt>
1231 <dd>alpha color for border (0-Range.a)</dd>
1232 </dl>
1233 </td></tr>
1234 </table>
1235 <table class="detail wide_list">
1236 <tr class="list">
1237 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
1238 <td class="itemcode"><a name="FillWithColorFloat"></a><code>procedure <b>FillWithColorFloat</b>(const aRed, aGreen, aBlue: Single; const aAlpha: Single = 1.0);</code></td>
1239 </tr>
1240 <tr><td colspan="2">
1241 <p>
1242 fill complete texture with one color    </p>
1243 <h6 class="description_section">Parameters</h6>
1244 <dl class="parameters">
1245 <dt>aRed</dt>
1246 <dd>red color for border (0.0-1.0)</dd>
1247 <dt>aGreen</dt>
1248 <dd>green color for border (0.0-1.0)</dd>
1249 <dt>aBlue</dt>
1250 <dd>blue color for border (0.0-1.0)</dd>
1251 <dt>aAlpha</dt>
1252 <dd>alpha color for border (0.0-1.0)</dd>
1253 </dl>
1254 </td></tr>
1255 </table>
1256 <table class="detail wide_list">
1257 <tr class="list">
1258 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
1259 <td class="itemcode"><a name="SetData"></a><code>procedure <b>SetData</b>(const aData: PByte; const aFormat: <a  href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>; const aWidth: Integer = -1; const aHeight: Integer = -1); virtual;</code></td>
1260 </tr>
1261 <tr><td colspan="2">
1262 <p>
1263 set data pointer of texture data    </p>
1264 <h6 class="description_section">Parameters</h6>
1265 <dl class="parameters">
1266 <dt>aData</dt>
1267 <dd>pointer to new texture data</dd>
1268 <dt>aFormat</dt>
1269 <dd>format of the data stored at aData</dd>
1270 <dt>aWidth</dt>
1271 <dd>width of the texture data</dd>
1272 <dt>aHeight</dt>
1273 <dd>height of the texture data</dd>
1274 </dl>
1275 </td></tr>
1276 </table>
1277 <table class="detail wide_list">
1278 <tr class="list">
1279 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
1280 <td class="itemcode"><a name="Clone"></a><code>function <b>Clone</b>: <a  href="glBitmap.TglBitmapData.html">TglBitmapData</a>;</code></td>
1281 </tr>
1282 <tr><td colspan="2">
1283 <p>
1284 create a clone of the current object </p>
1285 <h6 class="description_section">Returns</h6>
1286 <p class="return">clone of this object</p></td></tr>
1287 </table>
1288 <table class="detail wide_list">
1289 <tr class="list">
1290 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
1291 <td class="itemcode"><a name="Invert"></a><code>procedure <b>Invert</b>(const aRed, aGreen, aBlue, aAlpha: Boolean);</code></td>
1292 </tr>
1293 <tr><td colspan="2">
1294 <p>
1295 invert color data (bitwise not)    </p>
1296 <h6 class="description_section">Parameters</h6>
1297 <dl class="parameters">
1298 <dt>aRed</dt>
1299 <dd>invert red channel</dd>
1300 <dt>aGreen</dt>
1301 <dd>invert green channel</dd>
1302 <dt>aBlue</dt>
1303 <dd>invert blue channel</dd>
1304 <dt>aAlpha</dt>
1305 <dd>invert alpha channel</dd>
1306 </dl>
1307 </td></tr>
1308 </table>
1309 <table class="detail wide_list">
1310 <tr class="list">
1311 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
1312 <td class="itemcode"><a name="GenerateNormalMap"></a><code>procedure <b>GenerateNormalMap</b>(const aFunc: <a  href="glBitmap.html#TglBitmapNormalMapFunc">TglBitmapNormalMapFunc</a> = nm3x3; const aScale: Single = 2; const aUseAlpha: Boolean = false);</code></td>
1313 </tr>
1314 <tr><td colspan="2">
1315 <p>
1316 create normal map from texture data   </p>
1317 <h6 class="description_section">Parameters</h6>
1318 <dl class="parameters">
1319 <dt>aFunc</dt>
1320 <dd>normal map function to generate normalmap with</dd>
1321 <dt>aScale</dt>
1322 <dd>scale of the normale stored in the normal map</dd>
1323 <dt>aUseAlpha</dt>
1324 <dd>generate normalmap from alpha channel data (if present)</dd>
1325 </dl>
1326 </td></tr>
1327 </table>
1328 <table class="detail wide_list">
1329 <tr class="list">
1330 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
1331 <td class="itemcode"><a name="Create"></a><code>constructor <b>Create</b>; overload;</code></td>
1332 </tr>
1333 <tr><td colspan="2">
1334 <p>
1335 constructor - creates a texutre data object</p>
1336 </td></tr>
1337 </table>
1338 <table class="detail wide_list">
1339 <tr class="list">
1340 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
1341 <td class="itemcode"><a name="Create"></a><code>constructor <b>Create</b>(const aFileName: String); overload;</code></td>
1342 </tr>
1343 <tr><td colspan="2">
1344 <p>
1345 constructor - creates a texture data object and loads it from a file </p>
1346 <h6 class="description_section">Parameters</h6>
1347 <dl class="parameters">
1348 <dt>aFilename</dt>
1349 <dd>file to load texture from</dd>
1350 </dl>
1351 </td></tr>
1352 </table>
1353 <table class="detail wide_list">
1354 <tr class="list">
1355 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
1356 <td class="itemcode"><a name="Create"></a><code>constructor <b>Create</b>(const aStream: TStream); overload;</code></td>
1357 </tr>
1358 <tr><td colspan="2">
1359 <p>
1360 constructor - creates a texture data object and loads it from a stream </p>
1361 <h6 class="description_section">Parameters</h6>
1362 <dl class="parameters">
1363 <dt>aStream</dt>
1364 <dd>stream to load texture from</dd>
1365 </dl>
1366 </td></tr>
1367 </table>
1368 <table class="detail wide_list">
1369 <tr class="list">
1370 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
1371 <td class="itemcode"><a name="Create"></a><code>constructor <b>Create</b>(const aSize: <a  href="glBitmap.TglBitmapSize.html">TglBitmapSize</a>; const aFormat: <a  href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>; aData: PByte = nil); overload;</code></td>
1372 </tr>
1373 <tr><td colspan="2">
1374 <p>
1375 constructor - creates a texture data object with the given size, format and data   </p>
1376 <h6 class="description_section">Parameters</h6>
1377 <dl class="parameters">
1378 <dt>aSize</dt>
1379 <dd>size of the texture</dd>
1380 <dt>aFormat</dt>
1381 <dd>format of the given data</dd>
1382 <dt>aData</dt>
1383 <dd>texture data - be carefull: the data will now be managed by the texture data object</dd>
1384 </dl>
1385 </td></tr>
1386 </table>
1387 <table class="detail wide_list">
1388 <tr class="list">
1389 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
1390 <td class="itemcode"><a name="Create"></a><code>constructor <b>Create</b>(const aSize: <a  href="glBitmap.TglBitmapSize.html">TglBitmapSize</a>; const aFormat: <a  href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a>; const aFunc: <a  href="glBitmap.html#TglBitmapFunction">TglBitmapFunction</a>; const aArgs: Pointer = nil); overload;</code></td>
1391 </tr>
1392 <tr><td colspan="2">
1393 <p>
1394 constructor - creates a texture data object with the given size and format and uses the given callback to create the data    </p>
1395 <h6 class="description_section">Parameters</h6>
1396 <dl class="parameters">
1397 <dt>aSize</dt>
1398 <dd>size of the texture</dd>
1399 <dt>aFormat</dt>
1400 <dd>format of the given data</dd>
1401 <dt>aFunc</dt>
1402 <dd>callback to use for generating the data</dd>
1403 <dt>aArgs</dt>
1404 <dd>user defined parameters (use at will)</dd>
1405 </dl>
1406 </td></tr>
1407 </table>
1408 <table class="detail wide_list">
1409 <tr class="list">
1410 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
1411 <td class="itemcode"><a name="Create"></a><code>constructor <b>Create</b>(const aInstance: Cardinal; const aResource: String; const aResType: PChar = nil); overload;</code></td>
1412 </tr>
1413 <tr><td colspan="2">
1414 <p>
1415 constructor - creates a texture data object and loads it from a resource   </p>
1416 <h6 class="description_section">Parameters</h6>
1417 <dl class="parameters">
1418 <dt>aInstance</dt>
1419 <dd>resource handle</dd>
1420 <dt>aResource</dt>
1421 <dd>resource indentifier</dd>
1422 <dt>aResType</dt>
1423 <dd>resource type (if known)</dd>
1424 </dl>
1425 </td></tr>
1426 </table>
1427 <table class="detail wide_list">
1428 <tr class="list">
1429 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
1430 <td class="itemcode"><a name="Create"></a><code>constructor <b>Create</b>(const aInstance: Cardinal; const aResourceID: Integer; const aResType: PChar); overload;</code></td>
1431 </tr>
1432 <tr><td colspan="2">
1433 <p>
1434 constructor - creates a texture data object and loads it from a resource   </p>
1435 <h6 class="description_section">Parameters</h6>
1436 <dl class="parameters">
1437 <dt>aInstance</dt>
1438 <dd>resource handle</dd>
1439 <dt>aResourceID</dt>
1440 <dd>resource ID</dd>
1441 <dt>aResType</dt>
1442 <dd>resource type (if known)</dd>
1443 </dl>
1444 </td></tr>
1445 </table>
1446 <table class="detail wide_list">
1447 <tr class="list">
1448 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
1449 <td class="itemcode"><a name="Destroy"></a><code>destructor <b>Destroy</b>; override;</code></td>
1450 </tr>
1451 <tr><td colspan="2">
1452 <p>
1453 destructor</p>
1454 </td></tr>
1455 </table>
1456 <h3 class="detail">Properties</h3>
1457 <table class="detail wide_list">
1458 <tr class="list">
1459 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
1460 <td class="itemcode"><a name="Data"></a><code>property <b>Data</b>: PByte           read <a  href="glBitmap.TglBitmapData.html#fData">fData</a>;</code></td>
1461 </tr>
1462 <tr><td colspan="2">
1463 <p>
1464 texture data (be carefull with this!)</p>
1465 </td></tr>
1466 </table>
1467 <table class="detail wide_list">
1468 <tr class="list">
1469 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
1470 <td class="itemcode"><a name="Dimension"></a><code>property <b>Dimension</b>: <a  href="glBitmap.TglBitmapSize.html">TglBitmapSize</a>   read <a  href="glBitmap.TglBitmapData.html#fDimension">fDimension</a>;</code></td>
1471 </tr>
1472 <tr><td colspan="2">
1473 <p>
1474 size of the texture data (in pixel)</p>
1475 </td></tr>
1476 </table>
1477 <table class="detail wide_list">
1478 <tr class="list">
1479 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
1480 <td class="itemcode"><a name="Filename"></a><code>property <b>Filename</b>: String          read <a  href="glBitmap.TglBitmapData.html#fFilename">fFilename</a>;</code></td>
1481 </tr>
1482 <tr><td colspan="2">
1483 <p>
1484 file the data was loaded from</p>
1485 </td></tr>
1486 </table>
1487 <table class="detail wide_list">
1488 <tr class="list">
1489 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
1490 <td class="itemcode"><a name="Width"></a><code>property <b>Width</b>: Integer         read <a  href="glBitmap.TglBitmapData.html#GetWidth">GetWidth</a>;</code></td>
1491 </tr>
1492 <tr><td colspan="2">
1493 <p>
1494 width of the texture data (in pixel)</p>
1495 </td></tr>
1496 </table>
1497 <table class="detail wide_list">
1498 <tr class="list">
1499 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
1500 <td class="itemcode"><a name="Height"></a><code>property <b>Height</b>: Integer         read <a  href="glBitmap.TglBitmapData.html#GetHeight">GetHeight</a>;</code></td>
1501 </tr>
1502 <tr><td colspan="2">
1503 <p>
1504 height of the texture data (in pixel)</p>
1505 </td></tr>
1506 </table>
1507 <table class="detail wide_list">
1508 <tr class="list">
1509 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
1510 <td class="itemcode"><a name="Format"></a><code>property <b>Format</b>: <a  href="glBitmap.html#TglBitmapFormat">TglBitmapFormat</a> read <a  href="glBitmap.TglBitmapData.html#fFormat">fFormat</a> write <a  href="glBitmap.TglBitmapData.html#SetFormat">SetFormat</a>;</code></td>
1511 </tr>
1512 <tr><td colspan="2">
1513 <p>
1514 format the texture data is stored in</p>
1515 </td></tr>
1516 </table>
1517 <table class="detail wide_list">
1518 <tr class="list">
1519 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
1520 <td class="itemcode"><a name="Scanlines"></a><code>property <b>Scanlines</b>[constaIndex:Integer]: PByte read <a  href="glBitmap.TglBitmapData.html#GetScanlines">GetScanlines</a>;</code></td>
1521 </tr>
1522 <tr><td colspan="2">
1523 <p>
1524 pointer to begin of line at given index or <code>Nil</code></p>
1525 </td></tr>
1526 </table>
1527 <table class="detail wide_list">
1528 <tr class="list">
1529 <td class="visibility"><a  href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
1530 <td class="itemcode"><a name="FormatDescriptor"></a><code>property <b>FormatDescriptor</b>: <a  href="glBitmap.TglBitmapFormatDescriptor.html">TglBitmapFormatDescriptor</a> read <a  href="glBitmap.TglBitmapData.html#GetFormatDescriptor">GetFormatDescriptor</a>;</code></td>
1531 </tr>
1532 <tr><td colspan="2">
1533 <p>
1534 descriptor object that describes the format of the stored data</p>
1535 </td></tr>
1536 </table>
1537 <hr noshade size="1"><span class="appinfo"><em>Generated by <a  href="http://pasdoc.sourceforge.net/">PasDoc 0.13.0</a> on 2014-12-24 04:27:09</em>
1538 </span>
1539 </td></tr></table></body></html>