OLD | NEW |
1 /***************************************************************************/ | 1 /***************************************************************************/ |
2 /* */ | 2 /* */ |
3 /* ftbitmap.h */ | 3 /* ftbitmap.h */ |
4 /* */ | 4 /* */ |
5 /* FreeType utility functions for bitmaps (specification). */ | 5 /* FreeType utility functions for bitmaps (specification). */ |
6 /* */ | 6 /* */ |
7 /* Copyright 2004-2006, 2008, 2013, 2014 by */ | 7 /* Copyright 2004-2015 by */ |
8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ | 8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
9 /* */ | 9 /* */ |
10 /* This file is part of the FreeType project, and may only be used, */ | 10 /* This file is part of the FreeType project, and may only be used, */ |
11 /* modified, and distributed under the terms of the FreeType project */ | 11 /* modified, and distributed under the terms of the FreeType project */ |
12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ | 12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
13 /* this file you indicate that you have read the license and */ | 13 /* this file you indicate that you have read the license and */ |
14 /* understand and accept it fully. */ | 14 /* understand and accept it fully. */ |
15 /* */ | 15 /* */ |
16 /***************************************************************************/ | 16 /***************************************************************************/ |
17 | 17 |
(...skipping 30 matching lines...) Expand all Loading... |
48 /* This section contains functions for handling @FT_Bitmap objects. */ | 48 /* This section contains functions for handling @FT_Bitmap objects. */ |
49 /* Note that none of the functions changes the bitmap's `flow' (as */ | 49 /* Note that none of the functions changes the bitmap's `flow' (as */ |
50 /* indicated by the sign of the `pitch' field in `FT_Bitmap'). */ | 50 /* indicated by the sign of the `pitch' field in `FT_Bitmap'). */ |
51 /* */ | 51 /* */ |
52 /*************************************************************************/ | 52 /*************************************************************************/ |
53 | 53 |
54 | 54 |
55 /*************************************************************************/ | 55 /*************************************************************************/ |
56 /* */ | 56 /* */ |
57 /* <Function> */ | 57 /* <Function> */ |
58 /* FT_Bitmap_New */ | 58 /* FT_Bitmap_Init */ |
59 /* */ | 59 /* */ |
60 /* <Description> */ | 60 /* <Description> */ |
61 /* Initialize a pointer to an @FT_Bitmap structure. */ | 61 /* Initialize a pointer to an @FT_Bitmap structure. */ |
62 /* */ | 62 /* */ |
63 /* <InOut> */ | 63 /* <InOut> */ |
64 /* abitmap :: A pointer to the bitmap structure. */ | 64 /* abitmap :: A pointer to the bitmap structure. */ |
65 /* */ | 65 /* */ |
| 66 /* <Note> */ |
| 67 /* A deprecated name for the same function is `FT_Bitmap_New'. */ |
| 68 /* */ |
| 69 FT_EXPORT( void ) |
| 70 FT_Bitmap_Init( FT_Bitmap *abitmap ); |
| 71 |
| 72 |
| 73 /* deprecated */ |
66 FT_EXPORT( void ) | 74 FT_EXPORT( void ) |
67 FT_Bitmap_New( FT_Bitmap *abitmap ); | 75 FT_Bitmap_New( FT_Bitmap *abitmap ); |
68 | 76 |
69 | 77 |
70 /*************************************************************************/ | 78 /*************************************************************************/ |
71 /* */ | 79 /* */ |
72 /* <Function> */ | 80 /* <Function> */ |
73 /* FT_Bitmap_Copy */ | 81 /* FT_Bitmap_Copy */ |
74 /* */ | 82 /* */ |
75 /* <Description> */ | 83 /* <Description> */ |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 FT_EXPORT( FT_Error ) | 203 FT_EXPORT( FT_Error ) |
196 FT_GlyphSlot_Own_Bitmap( FT_GlyphSlot slot ); | 204 FT_GlyphSlot_Own_Bitmap( FT_GlyphSlot slot ); |
197 | 205 |
198 | 206 |
199 /*************************************************************************/ | 207 /*************************************************************************/ |
200 /* */ | 208 /* */ |
201 /* <Function> */ | 209 /* <Function> */ |
202 /* FT_Bitmap_Done */ | 210 /* FT_Bitmap_Done */ |
203 /* */ | 211 /* */ |
204 /* <Description> */ | 212 /* <Description> */ |
205 /* Destroy a bitmap object created with @FT_Bitmap_New. */ | 213 /* Destroy a bitmap object initialized with @FT_Bitmap_Init. */ |
206 /* */ | 214 /* */ |
207 /* <Input> */ | 215 /* <Input> */ |
208 /* library :: A handle to a library object. */ | 216 /* library :: A handle to a library object. */ |
209 /* */ | 217 /* */ |
210 /* bitmap :: The bitmap object to be freed. */ | 218 /* bitmap :: The bitmap object to be freed. */ |
211 /* */ | 219 /* */ |
212 /* <Return> */ | 220 /* <Return> */ |
213 /* FreeType error code. 0~means success. */ | 221 /* FreeType error code. 0~means success. */ |
214 /* */ | 222 /* */ |
215 /* <Note> */ | 223 /* <Note> */ |
216 /* The `library' argument is taken to have access to FreeType's */ | 224 /* The `library' argument is taken to have access to FreeType's */ |
217 /* memory handling functions. */ | 225 /* memory handling functions. */ |
218 /* */ | 226 /* */ |
219 FT_EXPORT( FT_Error ) | 227 FT_EXPORT( FT_Error ) |
220 FT_Bitmap_Done( FT_Library library, | 228 FT_Bitmap_Done( FT_Library library, |
221 FT_Bitmap *bitmap ); | 229 FT_Bitmap *bitmap ); |
222 | 230 |
223 | 231 |
224 /* */ | 232 /* */ |
225 | 233 |
226 | 234 |
227 FT_END_HEADER | 235 FT_END_HEADER |
228 | 236 |
229 #endif /* __FTBITMAP_H__ */ | 237 #endif /* __FTBITMAP_H__ */ |
230 | 238 |
231 | 239 |
232 /* END */ | 240 /* END */ |
OLD | NEW |