How do i get directdrawsurface from a imagelist.item[x]?
I need a source to pass to BltFast.
How do i get directdrawsurface from a imagelist.item[x]?
I need a source to pass to BltFast.
I'm not entirely sure as to what you mean, but I believe this should help.
Note, BltFast wont work if your image is drawn partially offscreen!Code://declare image yourImage : TDirectDrawSurface; //in init procedure create 'n load surface yourImage := TDirectDrawsurface.Create(DXDraw1.ddraw); yourImage .LoadFromGraphic(DXImagelist1.items.items[1].picture.graphic); //then in draw loop draw image Dxdraw1.Surface.BltFast(0, 0, yourImage.clientrect,1, yourImage);
I think what he wants to know is how to gain access to the surface of an image in the DXImagelist so he can use BltFast to draw the image from the list to the screen...
Basically he wants to know how to do a BltFast with images from the DXImageList...
Do it by the book, but be the author!
<br />
<br />Visit the Lion Productions website at:
<br />http://lionprod.f2o.org
as lion said, same deal, but from imagelist and im glad ;o)
imagelist.item[n].patternsurface[0] is seem is the surface. i had other bugs int he proggy so nothing appearn and i regarded it as a bug .. anwyays, i found it.
Bookmarks