Sha256: 3f1ed0e4b34a3b2429c9c0717cd260ed8b02d7ab748626c1ffd1fd17fe475e1a

Contents?: true

Size: 646 Bytes

Versions: 3

Compression:

Stored size: 646 Bytes

Contents

module ICO
  class IconDir < BitStruct
    LENGTH_IN_BYTES = 6

    default_options :endian => :little

    unsigned  :reserved,    16,  'Reserved. Must always be 0.',                :default => 0  

    unsigned  :type,        16,  'Specifies image type: 1 for icon (.ICO) ' +
                                 'image, 2 for cursor (.CUR) image. Other ' +
                                 'values are invalid.',                        :default => 1

    unsigned  :image_count, 16,  'Specifies number of images in the file.',    :default => 0

    rest      :data,             'IconDirEntry + IconImage sections as binary data strings'
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ico-0.1.2 lib/ico/icon_dir.rb
ico-0.1.1 lib/ico/icon_dir.rb
ico-0.1.0 lib/ico/icon_dir.rb