comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Problem with long integer color when saving a cgwindow to file
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Problem with long integer color when saving a cgwindow to file [message #87896 is a reply to message #87895] Mon, 03 March 2014 10:02 Go to previous messageGo to previous message
Mats Löfdahl is currently offline  Mats Löfdahl
Messages: 263
Registered: January 2012
Senior Member
Den måndagen den 3:e mars 2014 kl. 18:21:10 UTC+1 skrev David Fanning:
> David Fanning writes:
>
>> The way this is done is with cgWindow_SetDefs:
>
>> cgWindow_SetDefs, PS_Decomposed=1
>
> By the way, if you don't want to permanently set your PostScript device
> up in 24 bit color, you can also set the PS_Decomposed keyword on the
> cgControl command to do it for just that one instance.
>
> cgcontrol, output = 'test.jpg', ps_decomposed=1

Thank you David!

I don't know if I want to change this permanently or not. What are the drawbacks? That is, why isn't it the default? Is it so people will be able to use non-cg commands in a cgwindow with longs used the wrong way?

(I just happened to see the long integer thing today when I was looking for something else. I even hacked up a version of cgcolor over the weekend, that accepted RGB colors given as hexadecimal strings. Worked fine, but felt a bit stupid when I found out about the longs... :o)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL_Object example // help with
Next Topic: Codeless Language Module for IDL for BBEdit/TextWrangler

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 12:33:19 PDT 2025

Total time taken to generate the page: 0.96047 seconds