Skip to content

Feature Request: Add a Function for GetDIBits() #2120

Description

@songyuc

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions