Click here to Skip to main content
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 5: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 OriginalGriff 350
1 Jochen Arndt 190
2 Richard MacCutchan 135
3 Sergey Alexandrovich Kryukov 130
4 DamithSL 95
0 OriginalGriff 6,045
1 DamithSL 4,601
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,310


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 22 Aug 2012
Copyright © CodeProject, 1999-2014
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