Welcome! Log In Create A New Profile

Advanced

Merge 2 images

Posted by rdj 
rdj
Merge 2 images
November 29, 2023 07:49PM
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
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: