CrImage::Config
Inherits Struct / Value / Object
Config holds an image's color model and dimensions.
Used by read_config methods to get image metadata without
decoding the entire image, which is faster and uses less memory.
Example:
config = CrImage.read_config("large_image.png")
puts "#{config.width}x#{config.height}"
puts config.color_model.name
Constructors
Instance methods
color_model
Sourcecolor_model=(color_model : Color::Model)
Sourceheight
Sourceheight=(height : Int32)
Sourcewidth
Sourcewidth=(width : Int32)
Source