Sha256: b1da99d7d0921e3f6fe6b1c76df467cc00e16d800165500233c9d56470205a3c

Contents?: true

Size: 896 Bytes

Versions: 4

Compression:

Stored size: 896 Bytes

Contents

# encoding: UTF-8

module FreeImage
  # BI_RGB
  RGB = 0
  # BI_BITFIELDS
  BITFIELDS = 3
  # Structure for BITMAPINFOHEADER
=begin
  DWORD biSize;
  LONG  biWidth; 
  LONG  biHeight; 
  WORD  biPlanes; 
  WORD  biBitCount;
  DWORD biCompression; 
  DWORD biSizeImage; 
  LONG  biXPelsPerMeter; 
  LONG  biYPelsPerMeter; 
  DWORD biClrUsed; 
  DWORD biClrImportant;
=end
  class InfoHeader < FFI::Struct
    layout :biSize,          :dword, 0,
           :biWidth,         :long,  4,
           :biHeight,        :long,  8,
           :biPlanes,        :word,  12,
           :biBitCount,      :word,  14,
           :biCompression,   :dword, 16,
           :biSizeImage,     :dword, 20,
           :biXPelsPerMeter, :long,  24,
           :biYPelsPerMeter, :long,  28,
           :biClrUsed,       :dword, 32,
           :biClrImportant,  :dword, 36

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
free-image-0.8.1 lib/free-image/types/info_header.rb
free-image-0.8.0 lib/free-image/types/info_header.rb
free-image-0.7.1 lib/free-image/types/info_header.rb
free-image-0.7.0 lib/free-image/types/info_header.rb