Post

 Resources 

Console


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


-
Up One Level | Back to Forum


Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.
There have been 101 visitors within the last 20 minutes
RSS News Feed