PNGEncoder
Physical size of image, pixels per meter added to png pHYs chunk.
Use writeWithResolution to specify the resolution, or write
for dvui to set it based on the windows resolution
0 => don't write the pHYs chunk
Fields
- resolution:u32
0 => don't write the pHYs chunk
- output:*std.Io.Writer
- *std.Io.Writer
- bytes_remaining_until_next_state:u32
- u32
- state:enum(u2) { waiting_for_idhr_len, /// Waiting for one u32 of len data reading_idhr_len, /// Should wait for len + crc (one u32) skipping_idhr_content, has_inserted_chunks, }
- enum(u2) { waiting_for_idhr_len, /// Waiting for one u32 of len data reading_idhr_len, /// Should wait for len + crc (one u32) skipping_idhr_content, has_inserted_chunks, }
Functions
- write
dvui will set the resolution of 72 dpi (2834.64 px/m) times
windowNaturalScale- writeWithResolution
resolution == 0=> don't write the pHYs chunk- png_crc32
Calculate a PNG crc value.
Aliases
- PNGEncoder
Physical size of image, pixels per meter added to png pHYs chunk.
- min_buffer_size
Atleast this many bytes is needed to write the pHYs header