An ASF attached picture interface implementation. More...
#include <asfpicture.h>
Public Member Functions | |
Picture () | |
Picture (const Picture &other) | |
~Picture () | |
Picture & | operator= (const Picture &other) |
void | swap (Picture &other) noexcept |
bool | isValid () const |
String | mimeType () const |
void | setMimeType (const String &value) |
Type | type () const |
void | setType (const ASF::Picture::Type &t) |
String | description () const |
void | setDescription (const String &desc) |
ByteVector | picture () const |
void | setPicture (const ByteVector &p) |
ByteVector | render () const |
int | dataSize () const |
An ASF attached picture interface implementation.
This is an implementation of ASF attached pictures. Pictures may be included in attributes, one per WM/Picture attribute (but there may be multiple WM/Picture attributes in a single tag). These pictures are usually in either JPEG or PNG format.
TagLib::ASF::Picture::Picture | ( | ) |
Constructs an empty picture.
TagLib::ASF::Picture::Picture | ( | const Picture & | other | ) |
Construct a picture as a copy of other.
TagLib::ASF::Picture::~Picture | ( | ) |
Destroys the picture.
int TagLib::ASF::Picture::dataSize | ( | ) | const |
Returns picture as binary raw data value
String TagLib::ASF::Picture::description | ( | ) | const |
Returns a text description of the image.
bool TagLib::ASF::Picture::isValid | ( | ) | const |
Returns true
if Picture stores valid picture
String TagLib::ASF::Picture::mimeType | ( | ) | const |
Returns the mime type of the image. This should in most cases be "image/png" or "image/jpeg".
Copies the contents of other into this picture.
ByteVector TagLib::ASF::Picture::picture | ( | ) | const |
Returns the image data as a ByteVector.
const char *
which should make it easy to export this data to external programs.ByteVector TagLib::ASF::Picture::render | ( | ) | const |
Returns picture as binary raw data value
void TagLib::ASF::Picture::setDescription | ( | const String & | desc | ) |
Sets a textual description of the image to desc.
void TagLib::ASF::Picture::setMimeType | ( | const String & | value | ) |
Sets the mime type of the image. This should in most cases be "image/png" or "image/jpeg".
void TagLib::ASF::Picture::setPicture | ( | const ByteVector & | p | ) |
Sets the image data to p. p should be of the type specified in this frame's mime-type specification.
void TagLib::ASF::Picture::setType | ( | const ASF::Picture::Type & | t | ) |
Sets the type for the image.
|
noexcept |
Exchanges the content of the Picture with the content of other.
Type TagLib::ASF::Picture::type | ( | ) | const |
Returns the type of the image.