Returns the bytes per pixel for the given image
Procs
proc `$`(x: PngImage): string {.raises: [], tags: [].}
proc bpp(img: PngImage): int {.raises: [], tags: [].}
proc bpp(img: ref PngImage): int {.raises: [], tags: [].}
proc bpp(img: ptr PngImage): int {.raises: [], tags: [].}
proc itostr(val: uint32; n = 4): string {.inline, raises: [], tags: [].}
- Converts an integer to a string, as if the bytes had been copied directly out of the integer and into the bytestring. Copies the most-significant N bytes.