Class: DynamicPDFApi::BmpColorFormat

Inherits:
ColorFormat show all
Defined in:
lib/ruby_client/Imaging/BmpColorFormat.rb

Overview

Base class for BMP color formats

Direct Known Subclasses

BmpMonochromeColorFormat

Instance Attribute Summary

Attributes inherited from ColorFormat

#type

Instance Method Summary collapse

Constructor Details

#initialize(type) ⇒ BmpColorFormat

Creates a new BmpColorFormat object with the given type.



12
13
14
15
16
17
18
# File 'lib/ruby_client/Imaging/BmpColorFormat.rb', line 12

def initialize(type)
  if type != ColorFormatType::Monochrome
    @type = ColorFormatType::RGB
  else
    @type = type
  end
end