I am wondering how to do this in directx9 for VB.NET..
I have an image with multiple 'frames' of animation in it...
When I draw my .bmp surface I want to 'scroll' through the multiple frames within the .bmp by making DirectX only draw certain widths and heights in my .BMP
I used to do this using GDI..somthing like...
Public Sub Timer1_Tick
Dim Graphic As Graphics
Dim bmap As Bitmap
Graphic.DrawImage(bmap, rectangle,BitMapX , BitMapY, 67, 70)
BitmapX = BitmapX + 35
BitMapY = BitMapY + 15
End Sub
..or whatever..just an example...
For my code so far using DX9 I can draw a bitmap to a screen, move it around and such...But I cannot find a way to define what area of the bitmap to draw and how best to 'loop' through a series of defined draw areas within my bitmap, thus creating an animation from only one picture. Thank you for any help in advance.
I have an image with multiple 'frames' of animation in it...
When I draw my .bmp surface I want to 'scroll' through the multiple frames within the .bmp by making DirectX only draw certain widths and heights in my .BMP
I used to do this using GDI..somthing like...
Public Sub Timer1_Tick
Dim Graphic As Graphics
Dim bmap As Bitmap
Graphic.DrawImage(bmap, rectangle,BitMapX , BitMapY, 67, 70)
BitmapX = BitmapX + 35
BitMapY = BitMapY + 15
End Sub
..or whatever..just an example...
For my code so far using DX9 I can draw a bitmap to a screen, move it around and such...But I cannot find a way to define what area of the bitmap to draw and how best to 'loop' through a series of defined draw areas within my bitmap, thus creating an animation from only one picture. Thank you for any help in advance.