Click here to Skip to main content
15,894,907 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
C++



I have a requirement which I have to complete.

I will get lots of images (png) on the server side. On each image I have to embed a company specific logo which is actually another png file but very small in size.

The current project is in VC++.
Posted
Updated 16-Mar-15 3:37am
v2

As a quick-and-dirty approach you may load and draw the original one, then (load and) draw the company logo over it and finally save the resulting image (few lines of code, using GDI+, I guess).
 
Share this answer
 
v2
Comments
Afzaal Ahmad Zeeshan 16-Mar-15 9:44am    
+5, you could also suggest him to read your previous answer; about adding a watermark. See my solution 2.
CPallini 16-Mar-15 10:07am    
Nice. :-)
The feature that you're talking about is called a Watermark; watermark is an image or a label added to an image. Which can be added to the images to denote the copyright, or any other such functionality.

Please go through this previous thread[^] and look at the library attached in the first answer.

Visual C++ is just implementation of C++ by Microsoft in their editor; no difference in basic underlying language. So, you can use C++ libraries too.
 
Share this answer
 
Comments
CPallini 16-Mar-15 10:07am    
Have my 5 :-)
Afzaal Ahmad Zeeshan 16-Mar-15 10:23am    
Thanks for your vote, CPallini.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900