Fun with the templateimage

Bob Sneidar bobsneidar at iotecdigital.com
Thu Oct 31 13:39:13 EDT 2019


I should put a disclaimer in the comments of any code I write:

Note: The Author is not responsible for the loss of functionality or any consequences derived from to the alteration of any segment of this code. 

:-)
Bob S


> On Oct 31, 2019, at 10:37 , Bob Sneidar <bobsneidar at iotecdigital.com> wrote:
> 
> You removed the parenthesis. PUT 'EM BACK!  LOL! 
> 
> Bob S
> 
> 
>> On Oct 31, 2019, at 10:34 , Klaus major-k via use-livecode <use-livecode at lists.runrev.com> wrote:
>> 
>> Hi all,
>> 
>>> On Oct 31, 2019, at 10:01 , Klaus major-k via use-livecode <use-livecode at lists.runrev.com> wrote:
>>>> 
>>>> Hi Bob,
>>>> 
>>>>> Am 31.10.2019 um 16:00 schrieb Bob Sneidar via use-livecode <use-livecode at lists.runrev.com>:
>>>>> 
>>>>> Or better yet: -- No error checking, assumes parameters are correct. Also not tested. :-)
>>>>> 
>>>>> on exportScaledImage pSourceFile, pDestFile, pScaleFactor, pFormat
>>>>> ...
>>>>> switch pFormat
>>>>>  case "JPEG"
>>>>>     export the templateimage to file (pDestFile) as JPEG
>>>>>     break
>>>>>  case "BMP"
>>>>>     export the templateimage to file (pDestFile) as BMP
>>>>>     break
>>>>>  case "PNG"
>>>>>     export the templateimage to file (pDestFile) as PNG
>>>>>     break
>>>>> end switch
>>>>> ...
>>>> 
>>>> too bad LC does not like a variable for the target format:
>>>> ...
>>>> export the templateimage to file pDestFile as pFormat
>>>> ...
>>>> -> Compile error
>> 
>> i filed an enhancement request:
>> <https://quality.livecode.com/show_bug.cgi?id=22437>
>> 
>> 
>> Best
>> 
>> Klaus
>> --
>> Klaus Major
>> https://www.major-k.de
>> klaus at major-k.de
>> 
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 





More information about the use-livecode mailing list