449 * 450 * It will use the raster corresponding to the default glyph format. 451 * 452 * The value of the `num_grays` field in `abitmap` is ignored. If you 453 * select the gray-level rasterizer, and you want less than 256 gray 454 * levels, you have to use @FT_Outline_Render directly. 455 */ 456 FT_EXPORT( FT_Error ) 457 FT_Outline_Get_Bitmap( FT_Library library, 458 FT_Outline* outline, 459 const FT_Bitmap *abitmap ); 460 461 462 /************************************************************************** 463 * 464 * @function: 465 * FT_Outline_Render 466 * 467 * @description: 468 * Render an outline within a bitmap using the current scan-convert. 469 * This function uses an @FT_Raster_Params structure as an argument, 470 * allowing advanced features like direct composition, translucency, etc. 471 * 472 * @input: 473 * library :: 474 * A handle to a FreeType library object. 475 * 476 * outline :: 477 * A pointer to the source outline descriptor. 478 * 479 * @inout: 480 * params :: 481 * A pointer to an @FT_Raster_Params structure used to describe the 482 * rendering operation. 483 * 484 * @return: 485 * FreeType error code. 0~means success. 486 * 487 * @note: 488 * You should know what you are doing and how @FT_Raster_Params works to 489 * use this function. 490 * 491 * The field `params.source` will be set to `outline` before the scan 492 * converter is called, which means that the value you give to it is 493 * actually ignored. 494 * 495 * The gray-level rasterizer always uses 256 gray levels. If you want 496 * less gray levels, you have to provide your own span callback. See the 497 * @FT_RASTER_FLAG_DIRECT value of the `flags` field in the 498 * @FT_Raster_Params structure for more details. 499 */ 500 FT_EXPORT( FT_Error ) 501 FT_Outline_Render( FT_Library library, 502 FT_Outline* outline, 503 FT_Raster_Params* params ); 504 505 506 /************************************************************************** 507 * 508 * @enum: 509 * FT_Orientation | 449 * 450 * It will use the raster corresponding to the default glyph format. 451 * 452 * The value of the `num_grays` field in `abitmap` is ignored. If you 453 * select the gray-level rasterizer, and you want less than 256 gray 454 * levels, you have to use @FT_Outline_Render directly. 455 */ 456 FT_EXPORT( FT_Error ) 457 FT_Outline_Get_Bitmap( FT_Library library, 458 FT_Outline* outline, 459 const FT_Bitmap *abitmap ); 460 461 462 /************************************************************************** 463 * 464 * @function: 465 * FT_Outline_Render 466 * 467 * @description: 468 * Render an outline within a bitmap using the current scan-convert. 469 * 470 * @input: 471 * library :: 472 * A handle to a FreeType library object. 473 * 474 * outline :: 475 * A pointer to the source outline descriptor. 476 * 477 * @inout: 478 * params :: 479 * A pointer to an @FT_Raster_Params structure used to describe the 480 * rendering operation. 481 * 482 * @return: 483 * FreeType error code. 0~means success. 484 * 485 * @note: 486 * This advanced function uses @FT_Raster_Params as an argument, 487 * allowing FreeType rasterizer to be used for direct composition, 488 * translucency, etc. You should know how to set up @FT_Raster_Params 489 * for this function to work. 490 * 491 * The field `params.source` will be set to `outline` before the scan 492 * converter is called, which means that the value you give to it is 493 * actually ignored. 494 * 495 * The gray-level rasterizer always uses 256 gray levels. If you want 496 * less gray levels, you have to provide your own span callback. See the 497 * @FT_RASTER_FLAG_DIRECT value of the `flags` field in the 498 * @FT_Raster_Params structure for more details. 499 */ 500 FT_EXPORT( FT_Error ) 501 FT_Outline_Render( FT_Library library, 502 FT_Outline* outline, 503 FT_Raster_Params* params ); 504 505 506 /************************************************************************** 507 * 508 * @enum: 509 * FT_Orientation |