DVUI

write

dvui will set the resolution of 72 dpi (2834.64 px/m) times windowNaturalScale

Only valid between Window.beginand Window.end.

Parameters

#
output:*std.Io.Writer
*std.Io.Writer
pixels:[]u8
[]u8
width:u32
u32
height:u32
u32

Source

Implementation

#
pub fn write(output: *std.Io.Writer, pixels: []u8, width: u32, height: u32) !void {
    return writeWithResolution(output, pixels, width, height, @trunc(dvui.windowNaturalScale() * 72.0 / 0.0254));
}