Interact with pixels to create your shape
How your shape is stored in memory (1-bit depth)
Grid dimensions: 0 × 0 = 0 pixels
Bits per pixel: 1
Total bits calculation: 0 pixels × 1 bits = 0 bits
Bytes calculation: 0 bits ÷ 8 = 0 bytes (rounded up: 0 bytes)
With 1-bit colour depth, each pixel can only be on or off (2 possible values).
Lossless Compression: Reduces file size without losing any data. For example, instead of storing "0000000000000000", we could store "16 zeros" (run-length encoding). Formats like PNG use lossless compression.
Lossy Compression: Reduces file size by discarding some data. For example, similar colours might be merged together, or less noticeable details removed. Formats like JPEG use lossy compression.
Compression ratio: For this 0×0 grid at 1-bit depth: