I tried to merge an image that is a chart with a trend image (arrow up/down maybe later another chart)
what I have tried is:
MyLayer is picLayer
MyImage is WDPic = IE_NoName1
// Creates a layer, with the background image
MyLayer.Name = "BackgroundImage"
MyLayer.Width = MyImage.Width
MyLayer.Height = MyImage.Height
MyLayer.Type = typeLayerImage
MyLayer.Image = CHART_Overall.SaveImage()
// Adds the created layer to the WDPIC layer list
Add(MyImage.Layer,MyLayer)
MyLayer.Name = "trend"
MyLayer.Image = IMG_Trend
Add(MyImage.Layer,MyLayer)
what I see is the CHART_Overall in this new created picture, the second part is not visible
I have also tried
PicMergeLayer (myimage, 2,3)
The strange thing is I see 3 entries in the layer array
entry 1: background
entry 2: background
entry 3: trend
so they are all there although I have no idea why the entry background is added 2 times I added it only once
and the merge is not working or at least not showing the correct result
what am I doing wrong
kind regards,
RdJ
Windev 2024/Webdev 2024