Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

/View Effects

 [1/7] from: robbo1mark:aol at: 2-Mar-2001 10:31


JEFF, THANKS for your prompt repsonse to my query, facet.doc??? is this in the old rebol/view guide? if so then I'll look there? if not then what is it? thanks for the facelab.r script. Iam writing / plan to extend a command line function for image processing with preview & save options. for example consider this example of my fumction;
>> image-lab/invert/preview/bitmap %ukiah.jpg %silly.bmp
would invert the image file %ukiah.jpg , show a preview and save the new image to a bitmap file %sily.bmp . This image-lab power-tool function plans to incorporate multiple effects & refinements. Thanks for your speedy & helpful help! Mark Dickson In a message dated Fri, 2 Mar 2001 10:09:08 AM Eastern Standard Time, [jeff--rebol--net] writes: << In the facet doc.
> what is the full up to date list of effects that REBOL/View > can set a FACE/effect to? > > ie: make face [effect: 'invert ] > > also what is the correct procedure for scripting multiple > effects on an image ie 'vflip 'greyscale I presume it's a > block?
Yes.
> Iam writing an Image-Lab power-tool function with multiple > refinements.
http://www.rebol.com/library/scripts/facelab.r

 [2/7] from: jeff:rebol at: 2-Mar-2001 8:59


> >> image-lab/invert/preview/bitmap %ukiah.jpg %silly.bmp
image-lab: func [ in [file!] out [file!] effects [block!] /bmp /png /preview /local f ][ in: to-image f: make face [ image: load-image in size: image/size effect: effects ] if preview [view f] any [all [bmp save/bmp out in] all [png save/png out in]] ] image-lab/preview/bmp %space.jpg %sp.bmp [invert reflect 1x-1 tint 90]

 [3/7] from: arolls:bigpond:au at: 3-Mar-2001 4:01


Mark,
> >> image-lab/invert/preview/bitmap %ukiah.jpg %silly.bmp
How about returning an image, which you then have the option to view or save as you like: save/bmp $silly.bmp image-lab/invert/preview %ukiah.jpg This is more flexible (and you have to write less code in image-lab). Anton.

 [4/7] from: robbo1mark:aol at: 2-Mar-2001 12:25


JEFF, thanks Jeff, you sure are some speedy worker & very good too! hhmmmm...... guess that's why you work for REBOL Technologies Inc. and I don't. Only slight problem I have with implementing the 'effects in a parameter block is that you have to "know" the range of effects and their associated parameters. If these were function! refinements then they can be documented within the function, however that aside - your image-lab does exactly what I intended. Do you mind if I add this excellent example to the REBOL/Power-Tools collection? Mark Dickson

 [5/7] from: jeff::rebol::net at: 2-Mar-2001 9:38


The image-effect function I posted is public domain. Use it how you like.

 [6/7] from: robbo1mark:aol at: 2-Mar-2001 8:34


JEFF / EVERYBODY what is the full up to date list of effects that REBOL/View can set a FACE/effect to? ie: make face [effect: 'invert ] also what is the correct procedure for scripting multiple effects on an image ie 'vflip 'greyscale I presume it's a block? Iam writing an Image-Lab power-tool function with multiple refinements. All help gratefully received. Thanks in advance! Mark Dickson

 [7/7] from: jeff:rebol at: 2-Mar-2001 6:58


In the facet doc.
> what is the full up to date list of effects that REBOL/View > can set a FACE/effect to? > > ie: make face [effect: 'invert ] > > also what is the correct procedure for scripting multiple > effects on an image ie 'vflip 'greyscale I presume it's a > block?
Yes.
> Iam writing an Image-Lab power-tool function with multiple > refinements.
http://www.rebol.com/library/scripts/facelab.r