473,387 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Merging images

Hi,

Is it possible to create a new image from two images where the one is merged
onto the other.
Jun 18 '07 #1
3 5646
Jesper,

Yes, it is, but how do you want to perform the merge? In other words,
given one pixel from one image, and one pixel from another image (both at
the same location in the images), how should the resulting pixel look?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Jesper, Denmark" <Je***********@discussions.microsoft.comwrote in message
news:DA**********************************@microsof t.com...
Hi,

Is it possible to create a new image from two images where the one is
merged
onto the other.


Jun 18 '07 #2
Hi Nicholas (and thank you for answering so many of my previous questions!)

The two pixel colors shall not be blended. Pixels from, say img1, shall be
overridden with pixels from img2. I.e. img1 will appear to be behind img2.
Img2 must be able to have transparent pixels as img2 not will be rectangular.

I need this becasue I have some different icons for different type of
information nodes in a tree view. For all of these (around 4) different
images, I need to show five different status values, i.e. I'll need to draw
20 different images.

"Nicholas Paldino [.NET/C# MVP]" wrote:
Jesper,

Yes, it is, but how do you want to perform the merge? In other words,
given one pixel from one image, and one pixel from another image (both at
the same location in the images), how should the resulting pixel look?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Jesper, Denmark" <Je***********@discussions.microsoft.comwrote in message
news:DA**********************************@microsof t.com...
Hi,

Is it possible to create a new image from two images where the one is
merged
onto the other.


Jun 19 '07 #3
In that case, you create an image large enough to hold the largest of the 2
images, draw the first image on it, and then draw the second image on it.

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

"Jesper, Denmark" <Je***********@discussions.microsoft.comwrote in message
news:02**********************************@microsof t.com...
Hi Nicholas (and thank you for answering so many of my previous
questions!)

The two pixel colors shall not be blended. Pixels from, say img1, shall be
overridden with pixels from img2. I.e. img1 will appear to be behind img2.
Img2 must be able to have transparent pixels as img2 not will be
rectangular.

I need this becasue I have some different icons for different type of
information nodes in a tree view. For all of these (around 4) different
images, I need to show five different status values, i.e. I'll need to
draw
20 different images.

"Nicholas Paldino [.NET/C# MVP]" wrote:
>Jesper,

Yes, it is, but how do you want to perform the merge? In other
words,
given one pixel from one image, and one pixel from another image (both at
the same location in the images), how should the resulting pixel look?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Jesper, Denmark" <Je***********@discussions.microsoft.comwrote in
message
news:DA**********************************@microso ft.com...
Hi,

Is it possible to create a new image from two images where the one is
merged
onto the other.




Jun 19 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Patrick | last post by:
I have got 2 XML documents, both of which conform to the same XSD Schema, which define possible optional elements. The 2 XML documents contain 2 disjoint set of XML elements. What is the best,...
1
by: svdh | last post by:
I have posed a question last saturday and have advanced alot in the meantime. But I am still not there Problem is that I try to merging various fields from various tables in one document in Word...
2
by: Dave Taylor | last post by:
Is there a decent explanation of how menu merging with MDI forms work in VB.NET? I've read through the online help and it still seems that whenever I change menus around or whatever, it breaks...
0
by: inerarts | last post by:
Hi, I am looking simple application that can merge few images (same images, same size, different compression) together, by simple counting average of every pixel lightness. Thanks in advance.
0
by: resh | last post by:
hello, I am new to vb.net and i want to combine images(images of human face parts ) these images i want to combine to make a comlete face.
2
by: timlitw | last post by:
A while back I researched and wrote a script that uses gd to make merge an arrow on a compass to show wind direction, and another on a speedometer to show wind speed, now I'd like to enhance these...
1
by: Paul H | last post by:
I have a very simple database containing one table called "tblProducts". The fields are: ProductID, Description, Price. I have a folder on my PC that contains image files. The image file names...
3
by: toby.k.webb | last post by:
Hi all, I have two images that I would like to merge together similar to a watermark (one becomes semi-transparent). Is there a way to do this in vb.net? Thanks.
0
by: snehal s | last post by:
How to merge tiff images which may be multipage or single page using C# in VS 2005?
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.