DataDungeon::Measurement
What DataDungeon reads from a picture's bytes: its size; whether any pixel is transparent; the colour most of the visible picture is (0xRRGGBB); the box around the visible pixels ({x, y, w, h}); and, for an animation, its frames. Fields a format doesn't give are nil: a JPEG or GIF gives its size (and a GIF its frames) from its header, and the rest needs its pixels decoded.
Constructors
Instance methods
animation
clone
Sourcecontent
copy_with(width _width = @width, height _height = @height, transparent _transparent = @transparent, dominant_color _dominant_color = @dominant_color, content _content = @content, animation _animation = @animation)
Sourcedominant_color
height
transparent
width