I'm adding a guid to a image tag like this and save the file as a MultiPage tiff below.
Code: Select all
Private Function AddImageToTiff(ByVal ThisFile As String) As Boolean
Dim ImageID As Integer
Try
If Gdp.TiffIsEditableMultiPage(ThisTiffID) Then
ImageID = Gdp.CreateGdPictureImageFromFile(ThisFile)
Gdp.TagSetValueString(ImageID, Tags.TagDocumentName, TagType.TagTypeASCII, Guid.NewGuid.ToString.Replace("-", ""))
Gdp.TiffAppendPageFromGdPictureImage(ThisTiffID, ImageID)
Gdp.ReleaseGdPictureImage(ImageID)
Return True
End If
Catch ex As Exception
Gdp.ReleaseGdPictureImage(ImageID)
Return False
End Try
Return True
End Function
I tried
Code: Select all
Gdp.TagGetValueString(ID, Tags.TagDocumentName)
GdViewer1.CurrentPage I think just returns the position not the imageid.
Can you show me how to get the selected image please.
pqsik