FT_Bitmap_New() private method

private FT_Bitmap_New ( IntPtr abitmap ) : void
abitmap System.IntPtr
return void
Example #1
0
        private static IntPtr NewBitmap()
        {
            IntPtr bitmapRef = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(BitmapRec)));

            FT.FT_Bitmap_New(bitmapRef);
            return(bitmapRef);
        }
Example #2
0
        /// <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;
        }
Example #3
0
        /// <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;
        }