Combining two images into one
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Combining two images into one
hello,
I have two images that I would like to combine into one by placing one on top of the other. I need to maintain the transparency. I can see how this might be done by writing out new imageData from the combination of two imageData containers. But does anyone have any examples?
Thanks
Todd
I have two images that I would like to combine into one by placing one on top of the other. I need to maintain the transparency. I can see how this might be done by writing out new imageData from the combination of two imageData containers. But does anyone have any examples?
Thanks
Todd
Last edited by toddgeist on Fri Oct 04, 2013 2:52 pm, edited 1 time in total.
Re: Combining two images into one
Hi Todd,
naive question, but can't you "physically" put these two images on top of each other
on a card and then import a screenshot from that area?
Sounds much simpler than dealing with IMAGEDATA
Best
Klaus
naive question, but can't you "physically" put these two images on top of each other
on a card and then import a screenshot from that area?
Sounds much simpler than dealing with IMAGEDATA
Best
Klaus
Re: Combining two images into one
doesn't snapshot just do a screenshot of the area? if so, won't that be lower resolution?
Todd
Todd
Re: Combining two images into one
Hi Todd,
If you group these two images and then import a snapshot from the rect of that group,
transparency will be preserved.
But hey, I am just guessing from your sparse infos
Best
Klaus
Yes, what else?toddgeist wrote:doesn't snapshot just do a screenshot of the area?
If you group these two images and then import a snapshot from the rect of that group,
transparency will be preserved.
But hey, I am just guessing from your sparse infos
Well, a screenshot is a screenshot and has the resolution of the current monitortoddgeist wrote:if so, won't that be lower resolution?
Best
Klaus
Re: Combining two images into one
And that is why I am questioning if there is a better way.Klaus wrote:Hi Todd,
Yes, what else?toddgeist wrote:doesn't snapshot just do a screenshot of the area?
Klaus
Does imageData contain different information that what you would get from a snapshot?
Am I loosing resolution by doing a snapshot?
These are the basic questions
Todd
-
- VIP Livecode Opensource Backer
- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
- Location: Palo Alto
Re: Combining two images into one
Hi Todd,
Yes, snapshot uses the current screen resolution, which is good enough if nothing else happens to the image. But if after the image merge you want to zoom in or print out or some other manipulation then you want to work with the image data. If you don't do anything else with the image then snapshot is the easy way.
Simon
Yes, snapshot uses the current screen resolution, which is good enough if nothing else happens to the image. But if after the image merge you want to zoom in or print out or some other manipulation then you want to work with the image data. If you don't do anything else with the image then snapshot is the easy way.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Combining two images into one
Thanks Simon, for verifying my concern with import snapshot. I do need to do other things with these images after I am done.
So now back to the original question Does anybody have any an examples that show how to merge two images using imageData?
Thanks
Todd
So now back to the original question Does anybody have any an examples that show how to merge two images using imageData?
Thanks
Todd
-
- VIP Livecode Opensource Backer
- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
- Location: Palo Alto
Re: Combining two images into one
Have you looked at this:
http://lessons.runrev.com/s/lessons/m/4 ... processing
No, it's not about combining 2 images but it gives you info on working with imageData.
Simon
http://lessons.runrev.com/s/lessons/m/4 ... processing
No, it's not about combining 2 images but it gives you info on working with imageData.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Combining two images into one
I did see that lesson. It was helpful. I think I can figure this out. I was just hoping to not have to