Re: Images and Image Data
Michael Crawford wrote: I have a little project in which I want to convert an array of numbers from a text file into an image file. This will be done by making the highest number white and the lowest number in the array black. The number in between will be assigned a grey value depending on the amount. For example 100,50,0,50,100 would make an image 1 pixel high and 5 pixels across. The end pixels would be white the middle one black and the ones either side 50% grey. Manipulating the numbers is fine but generating the image from those numbers is proving problematic. I can see that you should use the ImageData property to do this but how just seems completely beyound me at the moment. Does any one have any examples or pointers on how I should go about doing this? You must have missed this post from Ken yesterday -- sounds like just what the doctor ordered: - From: Ken Ray *Subject: Fun With ImageData, MaskData and AlphaData *Date: Tue, 02 Jul 2002 22:14:19 -0700 Just wanted to let you all know that I've been working with these cool image-manipulation features of MetaCard and wrapped my head around them enough to write up a treatise on how to use them along with some examples. Here's the relevant links to the Tips section of the MetaCard page of my site to those who are interested : http://www.sonsothunder.com/devres/metacard/metacard.htm Click on the following links: imag003 - Understanding ImageData, MaskData and AlphaData imag004 - Making a Single Color Transparent Using MaskData imag005 - Making an Image Translucent Using AlphaData Enjoy! Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - -- Richard Gaskin Fourth World Media Corporation Custom Software and Web Development for All Major Platforms Developer of WebMerge 2.0: Publish any Database on Any Site ___ [EMAIL PROTECTED] http://www.FourthWorld.com Tel: 323-225-3717 AIM: FourthWorldInc ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Primer on MetaCard as CGI
Hi Everyone, Can anyone recommend a primer (for dummies) for using MetaCard as a CGI? Greg Gregory Lypny Concordia University ___ Better for us if you don't understand. The Tragically Hip http://rubbersoul.concordia.ca ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: open process on OSX?
On Wed, 3 Jul 2002 [EMAIL PROTECTED] wrote: Can't seem to get open process working on OSX. If I do the following: open process /usr/sbin/sendmail answer (the result) I get a long (say 30+ seconds) delay, followed by an error. In those 30+ seconds I can see sendmail jump to life (in the process viewer app). When it finally gives up waiting and quits, I get my answer dialog. Works fine with the equivalent Darwin engine / CGI script. Further, if I do this: open process /usr/sbin/sendmail -t answer (the result) I immediately get an error- any command line options seem to trigger an instant error with all processes I have tried. Am I doing something wrong? Open process still uses the old Carbon LaunchApplication() call on OS X, which means you can't use it with a command-line application like sendmail. You'll have to either use shell() and redirect the data to the process from a file, or in this case use a script to send the mail. The new dnsServers function enables building true MX record lookup which means a full replacement for sendmail is possible now. We have all the scripts to do this already, we just haven't had time to integrate and test them yet. As for a longer term solution to this problem, we've not decided how to handle it. Since you can't pass command-line arguments to Mac OS GUI applications, it's not possible to just use the UNIX open process code for the Carbon engine. We may eventually have to make launch and open process work differently (they're essentially synonyms now), and you'd use one for GUI apps and the other for command-line apps. Regards, Scott Brian Scott Raney [EMAIL PROTECTED] http://www.metacard.com MetaCard: You know, there's an easier way to do that... ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard