Skip to content

KernelAPI reference

Class ScreenCapture

Namespace: MicroEngine.Core
Assembly: MicroEngine.dll
Guide: Game lifecycle and time

Builds the image the player sees from the two views, as the platforms compose a frame.

C#
public static class ScreenCapture

Inheritance

object ← ScreenCapture

Methods

Compose(PixelImage, PixelImage?, (int Width, int Height), RectF, Color, SamplerDescription)

The window of screen pixels: letterbox (opaque), the opaque world scaled into frame with upscale’s magnification filter, then the premultiplied ui (window-sized, or null) over everything.

C#
public static PixelImage Compose(PixelImage world, PixelImage? ui, (int Width, int Height) screen, RectF frame, Color letterbox, SamplerDescription upscale)

Parameters

world PixelImage

ui PixelImage?

screen (int Width, int Height)

frame RectF

letterbox Color

upscale SamplerDescription

Returns

PixelImage

Exceptions

ArgumentOutOfRangeException

The screen size is not positive.