Results 1 to 10 of 12

Thread: TBItmap scanline

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    You need to use canvas instead of scanline if you want to do that. I would suggest calculating the scanline offset manually instead of using the scanline property. Just be sure to check it's pixelFormat

    Really,
    Code:
    p:=pointer(longword(bmp.canvas)+desiredScanLine*bmp.width*4);
    Should do the trick. Is that REALLY so much harder than calling scanline? I doubt it.

    Oh, and I REALLY suggest using longword instead of integer on these types of operations, you never know when the sign bit is going to mess with you.

    honestly, the mere existance of the scanline method in tbitmap is probably why I stopped using it -- it makes image loads take longer setting up all those pointers.
    Last edited by deathshadow; 12-07-2011 at 04:17 PM.
    The accessibility of a website from time to time must be refreshed with the blood of designers and owners. It is its natural manure

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
  •