IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 21, 2010, 2:40:17 PM (16 years ago)
Author:
eugene
Message:

add scale-bar options to jpegs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20100823/psModules/src/camera/pmFPA_JPEG.c

    r29354 r29514  
    195195        fmax = +6.0;
    196196    }
     197    bool haveBar = psMetadataLookupBool(&status, options, "SCALE.BAR"); // Mode for scaling image
     198    if (!status) {
     199        haveBar = false;
     200    }
    197201
    198202    float min = 0, max = 0;             // Minimum and maximum for stretch
    … …  
    226230    jpegOptions->max = max;
    227231
     232    if (haveBar) {
     233        jpegOptions->showScale = PS_JPEG_SHOWSCALE_BOTTOM;
     234    } else {
     235        jpegOptions->showScale = PS_JPEG_SHOWSCALE_NONE;
     236    }
     237
    228238    // NOTE: we can overlay the location of the stars from the readout by passing a bDrawBuffer to this function
    229239
Note: See TracChangeset for help on using the changeset viewer.