Is this allowed

BlitzMax Forums/BlitzMax Beginners Area/Is this allowed

JBR(Posted 2015) [#1]
Have a big image I'm drawing in strips but while I'm doing this I want to ReadPixels from it.

So first I LockImage to get the TPixMap and ReadPixels.

Do I have to UnLockImage the image to draw the strips.

I'm only Reading Pixels, so not altering the Image.

Jim


col(Posted 2015) [#2]
It looks as though the UnlockImage function is empty. So by that rational and without further investigation, and assuming youre not having problems, then I would say its ok to do what youre doing.


zoqfotpik(Posted 2015) [#3]
If it works for you it's ok. In my extensive experience trying to figure out pixmaps, if it doesn't work you'll get an exception.