mini_arcade_pygame_backend.ports.capture ======================================== .. py:module:: mini_arcade_pygame_backend.ports.capture .. autoapi-nested-parse:: Capture port implementation for Mini Arcade Native Backend. Provides functionality to capture screenshots in BMP format. Classes ------- .. autoapisummary:: mini_arcade_pygame_backend.ports.capture.CapturePort Module Contents --------------- .. py:class:: CapturePort(window: mini_arcade_pygame_backend.ports.window.WindowPort) Capture port for the Mini Arcade pygame backend. .. py:method:: bmp(path: str) -> bool Capture the current screen and save it as a BMP file. :param path: The file path to save the BMP screenshot. :type path: str :return: True if the screenshot was successfully saved, False otherwise. :rtype: bool .. py:method:: argb8888_bytes() -> tuple[int, int, bytes] Capture the current screen and return the pixel data in ARGB8888 format. :return: A tuple containing the width, height, and pixel data in ARGB8888 format. :rtype: tuple[int, int, bytes]