Re: (LispHUG) WebCams... ...and JPEG Output Files...
Here it is, BTW:
http://www.lispworks.com/documentation/lw61/CAPRM/html/capiref-540.htm
You need LW 6.1 or higher, though.
On Mon, Jan 13, 2014 at 10:32 PM, Edi Weitz <edi@agharta.de> wrote:
> I didn't have to do anything. The user selects a file name to write
> to (using CAPI:PROMPT-FOR-FILE which in my case offers "PNG", "JPG",
> "TIFF" and "BMP" as filters) and then I just do
>
> (externalize-and-write-image pane image file-name
> :if-exists :supersede
> ;; only needed for JPEG,
> otherwise ignored
> :quality 100)
>
> where FILE-NAME is what was returned by PROMPT-FOR-FILE and PANE is
> the output pane. LispWorks does the rest automatically, including
> figuring out what to do based on the file's suffix.
>
>
>
>
> On Mon, Jan 13, 2014 at 10:08 PM, Jack Harper
> <jharper@secureoutcomes.net> wrote:
>> At 01:18 PM 1/13/2014, Edi Weitz wrote:
>>>
>>> On Mon, Jan 13, 2014 at 9:01 PM, Jack Harper <jharper@secureoutcomes.net>
>>> wrote:
>>> >
>>> > Also, a quick question: Will gp:write-external-image &| Friends
>>> > create an
>>> > external .JPF file? Or, will CAPI really only create a .BMP file under
>>> > WIN32??
>>>
>>>
>>> Hi Jack,
>>>
>>> You can create and save images in several formats, see for example
>>> here: http://weitz.de/mandelbrot/#image
>>
>>
>>
>>
>> Guten Abend Edi -
>>
>> Did you have to build your own JPG output function from scratch - or, were
>> you able to use something already existing??
>>
>> I ran the Mandelbrot.exe and it is very nice indeed!
>>
>> Regards,
>>
>> Jack Harper
>> Secure Outcomes Inc
>> Evergreen, Colorado USA
>>
>>
>>
_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html