This documentation is for the old version. Go to the latest Graphics Mill docs

MediaProcessorMetadataDictionary.AttachedPicture Field

Picture associated with the file.

Namespace: Aurigma.GraphicsMill.Codecs
Assembly: Aurigma.GraphicsMill.Codecs.MediaProcessor (in Aurigma.GraphicsMill.Codecs.MediaProcessor.dll)

Remarks

This field can include such pictures as the CD cover or the artist image.

Examples

This example shows how to extract an attached picture.
Visual Basic
'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
C#
//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);
}

See Also

Reference