paintOutStatusBar
Fills the status-bar band with the background behind it, so the frame carries no device chrome.
The image keeps its dimensions exactly: the band is composited OVER the frame, never cropped off it, because a store listing expects a specific size and a cropped frame is a different picture.
Import:
import { paintOutStatusBar } from 'obsidian-integration-testing';Signature:
function paintOutStatusBar(bytes: Uint8Array<ArrayBufferLike>, options: PaintOutStatusBarOptions): Promise<Uint8Array<ArrayBufferLike>>Parameters:
| Parameter | Type | Description |
|---|---|---|
bytes |
Uint8Array<ArrayBufferLike> | The device framebuffer, as captureDeviceScreenshot returned it. |
options |
PaintOutStatusBarOptions | How tall the band is, and how the check reads it. |
Returns: Promise<Uint8Array<ArrayBufferLike>> — A Promise that resolves to the same frame with the band painted out, as PNG bytes.
Links to this page: