BASS.NET API for the Un4seen BASS Audio Library

BASS_TAG_FLAC_PICTUREGetTag Method

BASS.NET API for the Un4seen BASS Audio Library
Gets a BASS_TAG_FLAC_PICTURE tag from a given channel handle.

Namespace:  Un4seen.Bass
Assembly:  Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax

public static BASS_TAG_FLAC_PICTURE GetTag(
	int handle,
	int pictureIndex
)

Parameters

handle
Type: SystemInt32
The channel handle...a HMUSIC or HSTREAM.
pictureIndex
Type: SystemInt32
The zero-based picture index to get.

Return Value

Type: BASS_TAG_FLAC_PICTURE
Returns a BASS_TAG_FLAC_PICTURE instance if the BASS_TAG_FLAC_PICTURE could be retrieved successfully - else is returned.
Remarks

This method internally calles BASS_ChannelGetTags(Int32, BASSTag) to retrieve the BASS_TAG_FLAC_PICTURE tag.
Examples

Read all FLAC picture tags:
BASS_TAG_FLAC_PICTURE flacPic;
for (int n = 0; (flacPic = BASS_TAG_FLAC_PICTURE.GetTag(stream, n)) != null; n++)
{
    Console.WriteLine(flacPic);
    // access the image picture
    Image img = flacPic.Picture;
    // access the raw image data
    byte[] data = flacPic.Data;
}
See Also

Reference