FT_Bitmap_New() private method

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

            FT.FT_Bitmap_New(bitmapRef);
            return(bitmapRef);
        }
コード例 #2
0
ファイル: FTBitmap.cs プロジェクト: zcyemi/SharpFontStandard
        /// <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;
        }
コード例 #3
0
ファイル: FTBitmap.cs プロジェクト: jiangzhonghui/SharpFont
        /// <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;
        }