I’ve been beating my head against a wall for the past week or so trying to get image labels to display correctly in a “montage” using the GraphicsMagick plugin. Although the documentation for GM is very sparse, the ImageMagick library (on which it is based) documentation is much better. Here is essentially what I am trying to do:
http://www.imagemagick.org/Usage/montage/ <http://www.imagemagick.org/Usage/montage/> What I’m finding is that the “label” for individual images does not carry over when those images are put into an ImageArray. Dim StackingFrames As GM16ImageArrayMBS Dim StackingMontage As GM16MontageMBS Dim Thumbs As Picture The Montage object gets initialized early on when the application opens. This is getting set up correctly and *isn’t* the source of my problems. The following gets called multiple times, and it should create an ever increasing "image montage”: Sub AddImage(Frame As Picture) 'Create the image image = New GM16ImageMBS(Frame) ‘Label the image image.label(“Sample label”) System.DebugLog(image.label) ' <— This displays “Sample label" 'Put the current image into the array StackingFrames.insert(image) System.DebugLog(StackingFrames.Image(0).label) ' <— This shows as Null StackingFrames.image(0).label(“Sample label”) ' <— OK, let’s try it this way... System.DebugLog(StackingFrames.Image(0).label) ‘ <— This *also* shows as Null 'Update the thumbnails Thumbs = StackingFrames.montageImages(StackingMontage).Image(0).CopyPicture ‘ <— This results in a nice thumbnail montage, but alas, no labels. Any ideas what I’m doing wrong? Cheers. - bill k _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
