Results 1 to 5 of 5

Thread: DDs from ImageList

  1. #1

    DDs from ImageList

    How do i get directdrawsurface from a imagelist.item[x]?

    I need a source to pass to BltFast.

  2. #2

    DDs from ImageList

    I'm not entirely sure as to what you mean, but I believe this should help.

    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);
    Note, BltFast wont work if your image is drawn partially offscreen!

  3. #3

    DDs from ImageList

    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

  4. #4

    DDs from ImageList

    as lion said, same deal, but from imagelist and im glad ;o)

  5. #5

    DDs from ImageList

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •