MCPcopy Create free account
hub / github.com/ICE27182/Python-3D-renderer / __str__

Method __str__

png.py:100–107  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

98
99
100 def __str__(self):
101 color_type = ("Grayscale", None, "RGB", "Indexed", "Grayscale-alpha", None, "RGB-alpha")
102 s = f"Name: {self.name}\t\tPath: {self.path}"
103 s += f"Size: {self.width} x {self.height}\n"
104 s += f"Color Type = {color_type[self.color_type]}({self.color_type})\n"
105 s += f"Channel(s): {Png.channels_lookup[self.color_type]}\n"
106 s += f"Bit Depth: {self.bit_depth}"
107 return s
108
109
110 def check_crc(image_bytes:bytes, chunk_starting_index:int) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected