Skip to main content

capture_for_tweet

Function capture_for_tweet 

Source
pub fn capture_for_tweet(ctx: &mut CommandContext) -> Result<RgbaImage>
Expand description

Create the image consumed by SYSCOM.OPEN_TWEET_DIALOG.

This mirrors C_tnm_wnd::disp_proc_capture_for_tweet: capture the game at the logical screen size and, when #TWITTER.OVERLAP_IMAGE is configured and resolvable, render cut 0 over the full capture using alpha blending.