Routine for making a sprite dissolve?

BlitzPlus Forums/BlitzPlus Programming/Routine for making a sprite dissolve?

Well, i suppose you mean for realtime use
(eg 60 frames per second while user is moving a character about or something),

Otherwise you could just loop through after using LockBuffer() and WritedPixelFast()'ing. (On general sized images seems to take the same time as getting the LockedPixels() bank and Peeking and Poking it)

eg of use (not to do what you ask but to write a colour to every pixel)
img=Loadimage(....)
buf=Imagebuffer(img)
w=Imagewidth(img)
h=Imageheight(img)

LockBuffer(buf)
For u=0 to w
	For v=0 to h
		WritePixelFast ... ;depending on your desires.
	Next
Next
Unlockbuffer(buf)

But that would be slow..
I assume that you already know the above well (and ive wasted some time) but if so, all i can think of is:

Making a list of images during loading times that have a mask, and are each drawn with some dots randomly during this time (in the way mentioned above): it wouldnt affect the user during this time as the game would be doing some loading routines and not actually 'playing'.
So say you made a list of random images each 512,512 or something similar: you could just Tileimage random ones of them on over time. (Setbuffer(imb=buffer(img)) so Tileimage draws to the image) Big problem..It would only do for the first part as there would be alot of leftover spaces.
And if you wanted the pixels to fade from their random colour to black, and not just 'black out', id be lost as to how to do it in any good timeframe in Blitz.