DVUI

write

Writes a JPG with a quality of 90% dvui will set the density 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 {
    var self = JPGEncoder.init(output);
    return self.writeWithQuality(pixels, width, height, 90);
}