Blitz+ Image memory offset?

BlitzPlus Forums/BlitzPlus Programming/Blitz+ Image memory offset?

CopperCircle(Posted 2007) [#1]
Hi, I am trying to use this great userlib with Blitz+, but the way images are stored in memory is different to Blitz3D and Adrvideo = BLZPeekInt(buffer_image+76) does not work.
Anyone know the Blitz+ offset?

http://www.blitzbasic.com/Community/posts.php?topic=34301


ZJP(Posted 2007) [#2]
Hi,

Maybe a solution with this code :
http://www.blitzbasic.com/Community/posts.php?topic=57663


CopperCircle(Posted 2007) [#3]
Thanks, but I have found that even the ISL_LoadScriptFromMemory() command crashes Blitz+, before I get to try and apply it on an image.


ZJP(Posted 2007) [#4]
Ho, Why ?


CopperCircle(Posted 2007) [#5]
It seems BLZPeekInt does not work so well with Blitz+, I have found the image width and height are at:

width = BLZPeekInt(buffer_image+(92+72))
height = BLZPeekInt(buffer_image+(96+72))

I guess the adrvideo will be the same +72, but I can not get it to load a script from memory, eg. BLZPeekInt(BNK_COLORIZE+4) does not return the correct bank address and I can not find the bank address?