Class: TagLib::ID3v2::AttachedPictureFrame
- Defined in:
- docs/taglib/id3v2.rb
Overview
Attached picture frame (APIC), e.g. for cover art.
The constants in this class are used for the #type attribute.
Constant Summary collapse
- Other =
Other
0x00- FileIcon =
32x32 file icon (PNG only)
0x01- OtherFileIcon =
0x02- FrontCover =
0x03- BackCover =
0x04- LeafletPage =
0x05- Media =
0x06- LeadArtist =
0x07- Artist =
0x08- Conductor =
0x09- Band =
0x0A- Composer =
0x0B- Lyricist =
0x0C- RecordingLocation =
0x0D- DuringRecording =
0x0E- DuringPerformance =
0x0F- MovieScreenCapture =
0x10- ColouredFish =
0x11- Illustration =
0x12- BandLogo =
0x13- PublisherLogo =
0x14
Instance Attribute Summary collapse
- #description ⇒ String
-
#mime_type ⇒ String
MIME type (e.g.
"image/png"). -
#picture ⇒ binary String
Binary data string.
Be sure to use a binary string when setting this attribute. In Ruby 1.9, this means reading from a file with
"b"mode to get a string with encodingBINARY/ASCII-8BIT. -
#text_encoding ⇒ TagLib::String constant
Encoding for storing the text in the tag, e.g.
TagLib::String::UTF8. See the section String Encodings in TagLib. -
#type ⇒ AttachedPictureFrame constant
Type of the attached picture, see constants.
Attributes inherited from Frame
Instance Method Summary collapse
-
#initialize ⇒ AttachedPictureFrame
constructor
A new instance of AttachedPictureFrame.
Methods inherited from Frame
Constructor Details
#initialize ⇒ AttachedPictureFrame
Returns a new instance of AttachedPictureFrame.
128 129 |
# File 'docs/taglib/id3v2.rb', line 128 def initialize() end |
Instance Attribute Details
#description ⇒ String
132 133 134 |
# File 'docs/taglib/id3v2.rb', line 132 def description @description end |
#mime_type ⇒ String
MIME type (e.g. "image/png")
136 137 138 |
# File 'docs/taglib/id3v2.rb', line 136 def mime_type @mime_type end |
#picture ⇒ binary String
Binary data string.
Be sure to use a binary string when setting this attribute. In
Ruby 1.9, this means reading from a file with "b" mode to get a
string with encoding BINARY / ASCII-8BIT.
141 142 143 |
# File 'docs/taglib/id3v2.rb', line 141 def picture @picture end |
#text_encoding ⇒ TagLib::String constant
Encoding for storing the text in the tag, e.g.
TagLib::String::UTF8. See the section String Encodings in
TagLib.
146 147 148 |
# File 'docs/taglib/id3v2.rb', line 146 def text_encoding @text_encoding end |
#type ⇒ AttachedPictureFrame constant
Type of the attached picture, see constants.
150 151 152 |
# File 'docs/taglib/id3v2.rb', line 150 def type @type end |