Scott Clitheroe wrote:
I'm just starting out in RealBasic on my Mac after a fairly long layoff
from programming (well, not entirely, I've been AWK and shell scripting).
Welcome!
* Load a collection of images from the internet and assemble them into a
single large montage image suitable for a computer wallpaper
To accomplish this, would I start with an HTTPSocket object, and get the
image into a Picture object or series of picture objects that I can then
arrange on a canvas?
Yes, that's exactly what I would do. You can declare an array of
pictures as, for example, "pics() As Picture". Then just .Append each
image to this "pics" array as you get it.
Or, maybe you don't need the array -- perhaps you can draw each the
image into your montage picture as it comes in, then forget about it.
In either case, use NewPicture to create your big montage, and then draw
your other images into it with montage.graphics.DrawPicture (where
"montage" is your montage picture, of course).
Hope this helps,
- Joe
--
Joe Strout
Inspiring Applications, Inc.
http://www.InspiringApps.com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|