コード例 #1
0
ファイル: Gdi32.cs プロジェクト: WolfyD/KGySoft.Drawing
 internal static extern IntPtr CreateDIBSection(IntPtr hdc, [In] ref BITMAPINFO pbmi, int iUsage, out IntPtr ppvBits, IntPtr hSection, uint dwOffset);
コード例 #2
0
ファイル: Gdi32.cs プロジェクト: WolfyD/KGySoft.Drawing
 internal static IntPtr CreateDibSectionRgb(IntPtr hdc, ref BITMAPINFO bitmapInfo, out IntPtr bits)
 => NativeMethods.CreateDIBSection(hdc, ref bitmapInfo, DIB_RGB_COLORS, out bits, IntPtr.Zero, 0);