BASS.NET API for the Un4seen BASS Audio LibraryBASS_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.12.0
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:
VB
Dim flacPic As BASS_TAG_FLAC_PICTURE
Dim n As Integer
For n = 0 To (flacPic BASS_TAG_FLAC_PICTURE.GetTag(stream, n)) <> Nothing Step n + 1
    Console.WriteLine(flacPic)
    ' access the image picture
    Dim img As Image = flacPic.Picture 
    ' access the raw image data
    Dim data() As Byte = flacPic.Data 
Next
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