[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

171.0. "Losing color information with screen captures" by POBOX::KOCH (No matter where you go, there you are.) Thu Feb 09 1989 15:57

    Does a screen capture in DDIF format save the color information
    associated with each pixel?  I want to do screen grabs of CAD
    files (in color), and then bring that image into DECwrite.  When
    I do however, only light yellow and white pixel vectors are brought
    in.  Is this happening at capture time(through the DDIF filter)
    or does DECwrite and DDIF viewer simply refuse to display them?
    I would think that the way it should work is that anything of ANY
    color would be recognized as intelligent information to be saved
    and loaded.

T.RTitleUserPersonal
Name
DateLines
171.1No DECwrite color support in V1CADSYS::COOKALOE, ALOETue Feb 14 1989 23:595
    I can't answer your question, but the reason why DECwrite only displays
    light yellow and white pixels is almost certainly because it does not
    support color - and won't for V1. For more, I would sugguest the
    QUEEN::EPIC conference.

171.2Color comes out blank...ASIMOV::KENYONThe Foundation of Science (fiction)Wed Feb 15 1989 16:4614
re .1

The base note is referring to the phenomena of a drawing which has say 4 lines
of different colors, which is getting transferred into a DDIF file by capture
portion of screen with only 2 lines (provided they are some color which capture
portion of screen decides it will accept).  I have seen this with a number of
applications, and haven't been able to figure out just what the problem is (like
.0).  The problem occurs in both the DDIF viewer, as well as DECwrite, so I'm 
not so sure QUEEN::EPIC is the right place.  Since the viewer and write have 
the same problem a good starting point might be the capture portion of screen
code...?

-jeff

171.3Not sure, but does this help?MU::PORTERExiled in CyberiaWed Feb 15 1989 20:5114
    I don't know about capture-in-DDIF format, but capture-in-postscript
    format does a colour-to-monochrome conversion on each pixel.
    
    I believe that some weighted sum of the RGB values is computed,
    something like
    
    		I = aR + bG + cB	(don't know what a,b,c are set to)
    
    and if the result I exceeds some limit it's white, otherwise
    it's black.  This can result in what to your eyes looks like
    light-blue-on-white getting captured as white-on-white.
    
    Or is your problem something entirely different?

171.4DDIF::KROBINSONVeni,Vidi,Vincemus - DECtop U.Fri Feb 17 1989 13:109
.3 has it right.  Currently printscreen throws away the color info.  This is 
just a hack, eventually we will do "the right thing" which, in the ddif case
is to save the color info, and in the postsript case is some sort of dithering
process.  
					kathy

ps The factors in the calculation are those used by black and white TV, I 
believe, and are from Chapter 17.4.3 of Foley and Van Dam.

171.5Not what I would expect...ASIMOV::KENYONThe Foundation of Science (fiction)Fri Feb 17 1989 14:5610
If indead the capture portion of screen is doing a "what level are you at",
and if its above make it black, and if below make it white, the algorithm
is not returning what I would expect in the B&W image.  With an ECAD layout
package with yellow, green, light brown, red, and purple entities on a black
background, I only get the first 3 showing up in the DDIF image.  The red
and purple come out the same as the background in this case (white in the
DDIF image).  

-jeff

171.6VWSENG::KLEINSORGEToys 'R' UsFri Feb 17 1989 15:2410
    
    Try doing:
    
    		 (red * .30) + (green * .59) + (blue * .11)
    
    If it's .5 or above it should be foreground, otherwise it's background.
    Red and Purple are most likely to fall below the threshold unless
    you increase the lightess of the color with some green.