コード例 #1
0
        //THIS METHOD GETS THE POINTER TO THE BITMAP HEADER INFO
        private static BITMAPINFOHEADER GetDibInfo(IntPtr bmpPtr)
        {
            BITMAPINFOHEADER bmi = (BITMAPINFOHEADER)Marshal.PtrToStructure(bmpPtr, typeof(BITMAPINFOHEADER));

            return(bmi);
        }