dplug.gui.screencap

Undocumented in source.

Members

Functions

encodeScreenshotAsPNG
ubyte[] encodeScreenshotAsPNG(ImageRef!RGBA colorMap, WindowPixelFormat pf)

Create a PNG screenshot of the whole UI. Free the result with free(slice.ptr).

encodeScreenshotAsQB
ubyte[] encodeScreenshotAsQB(ImageRef!RGBA colorMap, WindowPixelFormat pf, ImageRef!L16 depthMap)

Create a 3D voxel file representing the whole UI. Export to a .qb file, as used as input by Qubicle, Goxel, and https://drububu.com/miscellaneous/voxelizer/ Use https://drububu.com/miscellaneous/voxelizer/ if you want to convert to a MagicaVoxel .vox Alternatively: https://github.com/mgerhardy/vengi Free the result with free(slice.ptr).

Meta