Picture associated with the file.
Namespace:
Aurigma.GraphicsMill.Codecs
Assembly:
Aurigma.GraphicsMill.Codecs.MediaProcessor (in Aurigma.GraphicsMill.Codecs.MediaProcessor.dll)
This field can include such pictures as the CD cover or the artist image.
'Get attached picture Private Sub GetPicture(ByVal metadata As MediaProcessorMetadataDictionary) 'Check if picture is present If metadata.Contains(MediaProcessorMetadataDictionary.AttachedPicture) Then Dim picture As Aurigma.GraphicsMill.Bitmap = CType(metadata _ (MediaProcessorMetadataDictionary.AttachedPicture), _ Aurigma.GraphicsMill.Bitmap) 'Process picture '... Return End If MessageBox.Show("Picture is absent", "Error", MessageBoxButtons.OK, _ MessageBoxIcon.Error) End Sub
//Get attached picture private void GetPicture(MediaProcessorMetadataDictionary metadata) { //Check if picture is present if (metadata.Contains(MediaProcessorMetadataDictionary.AttachedPicture)) { Aurigma.GraphicsMill.Bitmap picture = (Aurigma.GraphicsMill.Bitmap) metadata[MediaProcessorMetadataDictionary.AttachedPicture]; //Process picture //... return; } MessageBox.Show("Picture is absent", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); }