Description
I would like to propose the addition of a function for the Windows API function GetDIBits. This function is crucial for obtaining detailed bitmap information and pixel data, and it offers more flexibility compared to GetBitmapBits().
Suggested Code Example
Here's how one might use the function in Python:
import win32gui
import win32api
hdc = win32gui.GetDC(0)
bmp = win32gui.CreateCompatibleBitmap(hdc, width, height)
# Hypothetical function
pixels = win32api.GetDIBits(hdc, bmp, start_scan, scan_lines)
Description
I would like to propose the addition of a function for the Windows API function GetDIBits. This function is crucial for obtaining detailed bitmap information and pixel data, and it offers more flexibility compared to
GetBitmapBits().Suggested Code Example
Here's how one might use the function in Python: