struct PNG::PixelSize

Defined in:

png/pixel_size.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(x : UInt32, y : UInt32, meters : Bool = false) #

[View source]

Class Method Detail

def self.parse(io : IO) #

[View source]

Instance Method Detail

def meters=(meters : Bool) #

When true, x and y represent how many pixels are in a meter. When false, x and y represent the aspect ratio of a pixel


[View source]
def meters? : Bool #

When true, x and y represent how many pixels are in a meter. When false, x and y represent the aspect ratio of a pixel


[View source]
def write(io : IO) #

[View source]
def x : UInt32 #

[View source]
def x=(x : UInt32) #

[View source]
def y : UInt32 #

[View source]
def y=(y : UInt32) #

[View source]