Hi
I am making RPGMaker thingy, and it uses GDI+ which isn't good way for getting good FPS...
I need to rewrite GDI+ in my app to directdraw, but i dont know how to start...
I need ONLY to know how to copy 32x32 part of image1 and paste it to X, Y in image2
Like on this GDI+ script:
Code:
Dim Target As New Bitmap(Map.Width, Map.Height)
Dim Graphics As Graphics = Graphics.FromImage(Target)
Dim Source1 As New Bitmap(Tileset.Image)
Dim Source2 As New Bitmap(Map.Image)
Dim Copy As New Rectangle(16, 16, 16, 16)
Dim Paste As New Rectangle(0, 0, 16, 16)
Dim Punkt As New PointF(0, 0)
Paste = New Rectangle(X * 16 - 16, Y * 16 - 16, 16, 16)
Graphics.DrawImage(Source2, Punkt)
Graphics.DrawImage(Source1, Paste, Copy, GraphicsUnit.Pixel)
With Copy
.X = (TextureX - 1) * 16
.Y = (TextureY - 1) * 16
.Width = 16
.Height = 16
End With
With Paste
.X = X * 16 - 16
.Y = Y * 16 - 16
.Width = 16
.Height = 16
End With
Graphics.DrawImage(Source1, Paste, Copy, GraphicsUnit.Pixel)
Map.Image = Target
Thanks for your time!

BTW: I love your Anti-Spam thingy
