Click here to Skip to main content
11,647,748 members (70,369 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VC6 C#
Hi, I am trying to load a background image and also put some small images on it. I have images which has same color as background image but when I load these small images I will see the corners of images. I want to load images in a such a way that it should look like as it is a part of background image. Based on some conditions I am changing images and I want all these images should show as a part of it. I am developing this application in C#. but if anybody knows ways to do it in C# or VC++ would be great. Regds
Posted 21-Aug-12 4:56am
SNI1.5K
Comments
Wes Aday at 21-Aug-12 11:01am
   
There is no "load images in a such a way that it should look like as it is a part of background image". Whatever it is that you are doing is going to depend on the images themselves, not how you are loading them.
Christian Amado at 21-Aug-12 11:07am
   
What about remove borders?
Zoltán Zörgő at 21-Aug-12 11:31am
   
You want that a specific color on the small images to be treated as transparent? What you mean by "corner", isn't it that you see a border?
Marcus Kramer at 21-Aug-12 14:09pm
   
As Christian noted: make sure your small images don't have borders. My two cents worth: Make sure that your images have transparency if required and that your image drawing code respects that.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

The problem is not with the method used. Make sure that you use .png images with transparent borders.
  Permalink  

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

  Print Answers RSS
0 jyo.net 500
1 F-ES Sitecore 410
2 OriginalGriff 322
3 DamithSL 315
4 CPallini 250
0 OriginalGriff 1,342
1 jyo.net 994
2 DamithSL 971
3 Sergey Alexandrovich Kryukov 873
4 CPallini 795


Advertise | Privacy | Mobile
Web03 | 2.8.150804.3 | Last Updated 22 Aug 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100