Class: DynamicPDFApi::BmpColorFormat
- Inherits:
-
ColorFormat
- Object
- ColorFormat
- DynamicPDFApi::BmpColorFormat
- Defined in:
- lib/ruby_client/Imaging/BmpColorFormat.rb
Overview
Base class for BMP color formats
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from ColorFormat
Instance Method Summary collapse
-
#initialize(type) ⇒ BmpColorFormat
constructor
Creates a new BmpColorFormat object with the given type.
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 |