VBGamer |
|
Well... Rag on a Stick (0 replies, 0 views) (2000-Sep-24) Depending on what API you are using, use a function like this:
<tt>
<pre>
Sub Mosaic
Static Size As Integer
Size = Size + 1
For x = 0 To Width Step Size
For y = 0 To Height Step Size
DrawFilledRectangle (x, y)-(x + size - 1, y + size - 1), ColourOfPixel(x, y)
Next
Next
End Sub
</pre>
</tt>
That will work, although it might look better if you use the average colour of all the pixels in the rectangle. But that will probably be slow unfortunately.
hth |