Christian,

Are you saying that you are producing a montage image that contains the image 
labels similar to this one?



Here is my GM16MontageMBS class definition:

  StackingMontage = New GM16MontageMBS
  
  StackingMontage.backgroundColor = New GM16ColorMBS(&cE7E7E7)
  StackingMontage.fillColor = New GM16ColorMBS(&c000000)
  StackingMontage.tile = New GM16GeometryMBS("1x20")
  StackingMontage.geometry = New GM16GeometryMBS("160x120+5+5")
  StackingMontage.pointSize = 12
  StackingMontage.font = "Helvetica"
  
This should result in a single column (1x20 image) thumbnail montage of 
160x120px thumbnails with a 5px border. The color definitions now work (thanks 
for fixing that), but I’m not seeing *any* labels. Are you getting back the 
correct image label in *both* message boxes (the one before and the one after 
adding the image to the array)? Maybe it has something to do with creating the 
GMimage from a Xojo picture object rather than the simpler way that you are 
using.

  image = New GM16ImageMBS(Frame)



Cheers.

- bill k

> On Jan 30, 2016, at 4:08 AM, Christian Schmitz 
> <[email protected]> wrote:
> 
> 
>> 
>> What I’m finding is that the “label” for individual images does not carry 
>> over when those images are put into an ImageArray. 
> 
> for me it works with this example code:
> 
> 
>  Dim StackingFrames As new GM16ImageArrayMBS
>  Dim StackingMontage As GM16MontageMBS
>  Dim Thumbs As Picture
> 
>  'Create the image
>  dim c as new GM16ColorMBS("white")
>  dim g as new GM16GeometryMBS(100,100)
>  dim image as new GM16ImageMBS(g, c)
> 
>  'Label the image
>  image.label("Sample label") 
>  System.DebugLog(image.label) ' <— This displays “Sample label"
> 
>  MsgBox image.label
> 
>  'Put the current image into the array
>  StackingFrames.insert(image) 
>  MsgBox StackingFrames.Image(0).label ' <— This shows as Null
>  StackingFrames.image(0).label("Sample label") ' <— OK, let’s try it this 
> way...
>  MsgBox 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.
> 
> 
> 
> 
> Sincerely
> Christian
> 
> -- 
> Read our blog about news on our plugins:
> 
> http://www.mbsplugins.de/
> 
> _______________________________________________
> Mbsplugins_monkeybreadsoftware.info mailing list
> [email protected]
> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to