abstract struct FastImage::Meta

Overview

Struct to support different file types

Direct Known Subclasses

Defined in:

fastimage/meta.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(io : IO, initial_pos : Int32 = 0) #

Creates a new FastImage::Meta struct. initial_pos should be passed because some IOs (eg. HTTP) does not support IO#pos method.


[View source]
def self.new #

[View source]

Instance Method Detail

def dimensions #

Returns an Array of #width and #height.


[View source]
def height : UInt16 | Nil #

[View source]
def initial_pos : Int32 #

[View source]
def width : UInt16 | Nil #

[View source]