Class: AppleDosPic
- Inherits:
-
AppleHiResPic
- Object
- NativeFileType
- AppleHiResPic
- AppleDosPic
- Defined in:
- lib/native_file_types/apple2/AppleHiResPic.rb
Direct Known Subclasses
AxePackedAppleDosPic, PackedAppleDosPic, ScrunchedAppleDosPic
Instance Attribute Summary
Attributes inherited from NativeFileType
#aux_code, #contents, #file_system_image, #file_type, #filename, #meta_data
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from AppleHiResPic
buffer_to_picture, matching_score, #picture_format, #picture_height, #picture_width, scanline_offsets, #to_picture
Methods inherited from NativeFileType
#<=>, #==, all_native_file_types, best_fit, code_for_tests, compatability_score, #data_without_header, file_type_matches?, #full_filename, #initialize, is_valid_file_if, #load_address, matching_score, native_file_types_possible_on_file_system, non_matching_score, #to_hex_dump, #to_info_dump, #type_description
Methods included from SubclassTracking
Constructor Details
This class inherits a constructor from NativeFileType
Class Method Details
.file_system_file_types ⇒ Object
110 111 112 113 114 |
# File 'lib/native_file_types/apple2/AppleHiResPic.rb', line 110 def self.file_system_file_types { AppleDos=>0x04 } end |
.load_address(contents) ⇒ Object
116 117 118 |
# File 'lib/native_file_types/apple2/AppleHiResPic.rb', line 116 def self.load_address(contents) contents[0]+contents[1]*256 end |
Instance Method Details
#header_length ⇒ Object
120 121 122 |
# File 'lib/native_file_types/apple2/AppleHiResPic.rb', line 120 def header_length 4 end |
#unpacked_picture_bytes ⇒ Object
123 124 125 |
# File 'lib/native_file_types/apple2/AppleHiResPic.rb', line 123 def unpacked_picture_bytes data_without_header end |