Audio::TagLib::ID3v2::AttachedPictureFrame - An ID3v2 attached picture frame implementation
use Audio::TagLib::ID3v2::AttachedPictureFrame; my $i = Audio::TagLib::ID3v2::AttachedPictureFrame->new(); $i->setTextEncoding("UTF8"); $i->setDescription(Audio::TagLib::String->new("utf8 sample string", "UTF8"));
This is an implementation of ID3v2 attached pictures. Pictures may be included in tags, one per APIC frame (but there may be multiple APIC frames in a single tag). These pictures are usually in either JPEG or PNG format.
Constructs an empty picture frame. The description, content and text encoding should be set manually.
Constructs an AttachedPicture frame based on $data.
Destroys the AttahcedPictureFrame instance.
Returns a string containing the description and mime-type
Returns the text encoding used for the description.
see setTextEncoding()
see description()
Set the text encoding used for the description.
Returns the mime type of the image. This should in most cases be "image/png" or "image/jpeg".
Sets the mime type of the image. This should in most cases be "image/png" or "image/jpeg".
Returns the type of the image.
see setType()
see %_Type
Sets the type for the image.
see type()
Returns a text description of the image.
see setDescription()
see textEncoding()
Sets a textual description of the image to $desc.
Returns the image data as a ByteVector.
ByteVector has a data() method that returns a const char * which should make it easy to export this data to external programs.
see setPicture()
see mimeType()
Sets the image data to $p. $p should be of the type specified in this frame's mime-type specification.
see picture()
see setMimeType()
This describes the function or content of the picture. keys %Audio::TagLib::ID3v2::AttachedPictureFrame::_Type lists all available values used in Perl code.
keys %Audio::TagLib::ID3v2::AttachedPictureFrame::_Type
None by default.
Audio::TagLib Frame
Dongxu Ma, <dongxu@cpan.org>
Copyright (C) 2005 by Dongxu Ma
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available.
To install Audio::TagLib, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Audio::TagLib
CPAN shell
perl -MCPAN -e shell install Audio::TagLib
For more information on module installation, please visit the detailed CPAN module installation guide.