10/7/2016 - 9:10 AM


' For complete examples and data files, please go to
' initialize PsdFormat
Dim psdFormat As New PsdFormat(Common.MapSourceFilePath(filePath))

' check if contain Image Resource Blocks
If psdFormat.HasImageResourceBlocks Then
    ' get native photoshop metadata
    Dim imageResource As ImageResourceMetadata = psdFormat.GetImageResourceBlocks()

    ' display all blocks
    For Each imageResourceBlock As ImageResourceBlock In imageResource.Blocks
        Console.WriteLine("Id: {0}, size: {1}", imageResourceBlock.DefinedId, imageResourceBlock.DataSize)

        ' create your own logic to parse image resource block
        Dim data As Byte() = imageResourceBlock.Data
End If