with memblocks , you will now be able to make mosaics effects just like Super Mario world does.
You should change the load image with 1 image you choose.
use is quite simple.
Just use 1 function :
Flx_Mosaic(_source,_cible,_facteur)_source = source bitmap that contain the original image
_target = target bitmap that'll contain the mosaic
_factor = mosaic factor ( >0 and 1 and _key0
make memblock from bitmap _memblock,_bitmapsource
xsize=memblock dword(_memblock,0) : ysize=memblock dword(_memblock,4)
depth=memblock dword(_memblock,8) : _length=get memblock size(_memblock)
if depth=16
for ypos=0 to ysize-_factor step _factor
for xpos=0 to xsize-_factor step _factor
_read=12+(xpos*2+(ypos*xsize*2))
_pixel=memblock word(_memblock,_read)
if _factor=2
write memblock word _memblock,_read+2,_pixel
write memblock word _memblock,_read+(xsize*2),_pixel
write memblock word _memblock,_read+(xsize*2)+2,_pixel
endif
if _factor>2
for ysb=0 to _factor-1
for xsb=0 to _factor-1
_write=_read+(xsb*2)+(ysb*xsize*2)
write memblock word _memblock,_write,_pixel
next xsb
next ysb
endif
next xpos
next ypos
endif
make bitmap from memblock _bitmaptarget,_memblock
delete memblock _memblock
endif
endfunction