Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - manawyrm

Pages: [1]
1
DotNet / Spriteoverlapping
« on: May 05, 2012, 10:22:35 pm »
Hello,

first sorry for my broken english -- im from germany.

i wanted to generate a static background out of some grass tiles. (attachment)

To accomplish this i have written the following code:
Code: [Select]
   For x As Integer = 0 To 20
            For y As Integer = 0 To 20
                Dim image As New Graphics.Sprite(i)
                image.Position = New Graphics.Vector2((x * 15), (y * 15))
                RenderWindow.Draw(image)
                image.Dispose()
            Next
        Next

The sprites have some nasty border around them. (http://tbspace.de/holz/xgixgrqlosc.png)
Does anybody know how to fix that? I already tried playing around with BlendMode, but it didn't help.

Thanks,
Tobias

[attachment deleted by admin]

Pages: [1]