private FT_Outline_Get_Bitmap ( |
||
library | ||
outline | ||
abitmap | ||
Résultat | System.Error |
/// <summary> /// Render an outline within a bitmap. The outline's image is simply OR-ed to the target bitmap. /// </summary> /// <remarks><para> /// This function does NOT CREATE the bitmap, it only renders an outline image within the one you pass to it! /// Consequently, the various fields in ‘abitmap’ should be set accordingly. /// </para><para> /// It will use the raster corresponding to the default glyph format. /// </para><para> /// The value of the ‘num_grays’ field in ‘abitmap’ is ignored. If you select the gray-level rasterizer, and /// you want less than 256 gray levels, you have to use <see cref="Render(RasterParams)"/> directly. /// </para></remarks> /// <param name="bitmap">A pointer to the target bitmap descriptor.</param> public void GetBitmap(FTBitmap bitmap) { Error err = FT.FT_Outline_Get_Bitmap(parentLibrary.Reference, Reference, bitmap.Reference); if (err != Error.Ok) { throw new FreeTypeException(err); } }
/// <summary> /// Render an outline within a bitmap. The outline's image is simply OR-ed to the target bitmap. /// </summary> /// <remarks><para> /// This function does NOT CREATE the bitmap, it only renders an outline image within the one you pass to it! /// Consequently, the various fields in ‘abitmap’ should be set accordingly. /// </para><para> /// It will use the raster corresponding to the default glyph format. /// </para><para> /// The value of the ‘num_grays’ field in ‘abitmap’ is ignored. If you select the gray-level rasterizer, and /// you want less than 256 gray levels, you have to use <see cref="Render(RasterParams)"/> directly. /// </para></remarks> /// <param name="bitmap">A pointer to the target bitmap descriptor.</param> public void GetBitmap(FTBitmap bitmap) { if (disposed) { throw new ObjectDisposedException("Outline", "Cannot access a disposed object."); } Error err = FT.FT_Outline_Get_Bitmap(parentLibrary.Reference, reference, bitmap.Reference); if (err != Error.Ok) { throw new FreeTypeException(err); } }
/// <summary> /// Render an outline within a bitmap. The outline's image is simply OR-ed to the target bitmap. /// </summary> /// <remarks><para> /// This function does NOT CREATE the bitmap, it only renders an outline image within the one you pass to it! /// Consequently, the various fields in ‘abitmap’ should be set accordingly. /// </para><para> /// It will use the raster corresponding to the default glyph format. /// </para><para> /// The value of the ‘num_grays’ field in ‘abitmap’ is ignored. If you select the gray-level rasterizer, and /// you want less than 256 gray levels, you have to use <see cref="Render(Library, RasterParams)"/> directly. /// </para></remarks> /// <param name="library">A handle to a FreeType library object.</param> /// <param name="bitmap">A pointer to the target bitmap descriptor.</param> public void GetBitmap(Library library, FTBitmap bitmap) { if (library == null) { throw new ArgumentNullException(nameof(library)); } if (bitmap == null) { throw new ArgumentNullException(nameof(bitmap)); } Error err = FT.FT_Outline_Get_Bitmap(library.Reference, Reference, bitmap.Reference); if (err != Error.Ok) { throw new FreeTypeException(err); } }
/// <summary> /// Render an outline within a bitmap. The outline's image is simply OR-ed to the target bitmap. /// </summary> /// <remarks><para> /// This function does NOT CREATE the bitmap, it only renders an outline image within the one you pass to it! /// Consequently, the various fields in ‘abitmap’ should be set accordingly. /// </para><para> /// It will use the raster corresponding to the default glyph format. /// </para><para> /// The value of the ‘num_grays’ field in ‘abitmap’ is ignored. If you select the gray-level rasterizer, and /// you want less than 256 gray levels, you have to use <see cref="Render(Library, RasterParams)"/> directly. /// </para></remarks> /// <param name="library">A handle to a FreeType library object.</param> /// <param name="bitmap">A pointer to the target bitmap descriptor.</param> public void GetBitmap(Library library, FTBitmap bitmap) { if (disposed) { throw new ObjectDisposedException("Outline", "Cannot access a disposed object."); } if (library == null) { throw new ArgumentNullException("library"); } Error err = FT.FT_Outline_Get_Bitmap(library.Reference, reference, bitmap.Reference); if (err != Error.Ok) { throw new FreeTypeException(err); } }