Class: Libpng::DecodedImage

Inherits:
Struct
  • Object
show all
Defined in:
lib/libpng.rb

Overview

Result struct for Libpng.decode (returned as a plain Hash for simplicity).

Instance Attribute Summary collapse

Instance Attribute Details

#formatObject

Returns the value of attribute format

Returns:

  • (Object)

    the current value of format



186
187
188
# File 'lib/libpng.rb', line 186

def format
  @format
end

#heightObject

Returns the value of attribute height

Returns:

  • (Object)

    the current value of height



186
187
188
# File 'lib/libpng.rb', line 186

def height
  @height
end

#pixelsObject

Returns the value of attribute pixels

Returns:

  • (Object)

    the current value of pixels



186
187
188
# File 'lib/libpng.rb', line 186

def pixels
  @pixels
end

#widthObject

Returns the value of attribute width

Returns:

  • (Object)

    the current value of width



186
187
188
# File 'lib/libpng.rb', line 186

def width
  @width
end