realbasic-nug
[Top] [All Lists]

Re: First time user, starting first project

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: First time user, starting first project
From: Joe Strout <joe@inspiringapps.com>
Date: Fri, 27 Feb 2009 13:35:24 -0700
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <FF547954-D318-411A-BDBB-505A5DE9818B@clitheroe.ca>
Organization: Inspiring Applications, Inc.
References: <FF547954-D318-411A-BDBB-505A5DE9818B@clitheroe.ca>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
User-agent: Thunderbird 2.0.0.19 (Macintosh/20081209)
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>


<Prev in Thread] Current Thread [Next in Thread>