DVUI

JPGEncoder

Fields

#
output:*std.Io.Writer
*std.Io.Writer
density:u16
u16
bytes_remaining_of_jfif_app0_segment:u32

Bytes remaining to fill the buffer with the header

Functions

#
init

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

initDensity

density is in pixels per inch (2.54 cm).

write

Writes a JPG with a quality of 90%

writeWithQuality

Writes a JPG with a any quality between 0-100 and the density provided.

Aliases

#
min_buffer_size

The number of bytes from the start of a JFIF file to the end of the density values