private static IntPtr NewBitmap() { IntPtr bitmapRef = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(BitmapRec))); FT.FT_Bitmap_New(bitmapRef); return(bitmapRef); }
/// <summary> /// Initializes a new instance of the <see cref="FTBitmap"/> class. /// </summary> /// <param name="library">The parent <see cref="Library"/>.</param> public FTBitmap(Library library) { IntPtr bitmapRef = Marshal.AllocHGlobal(Marshal.SizeOf <BitmapRec>()); FT.FT_Bitmap_New(bitmapRef); Reference = bitmapRef; this.library = library; this.user = true; }
/// <summary> /// Initializes a new instance of the <see cref="FTBitmap"/> class. /// </summary> /// <param name="library">The parent <see cref="Library"/>.</param> public FTBitmap(Library library) { IntPtr bitmapRef; FT.FT_Bitmap_New(out bitmapRef); Reference = bitmapRef; this.library = library; this.user = true; }