Extract all pictures of a page
Therefore call the Pictures function of the page.
You will get a name-value collection plus a picture for each found image object.
THBArrayObject spPictures = spPage.Pictures();
For pics = 0 To spPictures.Size/2-1
THBNameValuePairs values = cast.CastToTHBNameValuePairs spPictures.At(pics*2+0)
THBImageEdit spie = cast.CastToTHBImageEdit spPictures.At(pics*2+1)
strPicName = values.At("Name")
String strFile = strPathDst + strFileNamePart nPage.ToString() + pics.ToString() + ".png"
spie.SavePictureToFile strFile, thbifPNG
Next



RSS News Feed