tile drawing problem

gbparis

New member
Joined
Oct 1, 2003
Messages
4
Hi

Actually I write a very basic isometric tile engine, it work fine except when the tiles are draw see the pic.

1/ the transparency problem.

2/ the tile.

3/ the alpha channel.

----------------------------------------------------------------------------------------------------

I got strange lines on the edges, I think its a problem with the " myTile.MakeTransparent(); "
Ive make some tests with alpha channel, search the web etc...

If you have an idea.

Thanks
 
the code is not clean and extremly basic :)

public class test
{
private Bitmap tile = new Bitmap("tile1.tif");

public test()
{
tile.MakeTransparent();
}

public void draw(Graphics g)
{

for(int i=0;i<13;i++)
{
for(int x=0;x<4;x++)
{
g.DrawImage();
}

for(int y=0;y<5;y++)
{
g.DrawImage();
}

corr1 = nCorr1;
corr2 = Ncorr2;
}
}
}
 
I hope its not due to my poor english :D

the problem is the gray border of the tile, I Found the source of this problem,
that come when I resize the tile with photoshop, it interpolate and create some non pure black or white pixel.

I think I must cut the tile before drawing it...:o
 
Back
Top