BlueSpray - Help
© SchoonerTurtles, Inc. 2012-2015

Introduction
Contents
Getting Started
Download
Navigating
Tutorials
Scripting
Advanced
About

Class STPaster

Extends STTransformRaster

Pastes a raster into another raster.
@author Jim Graham
Copyright, SchoonerTurtles LLP, 2009

Static Functions

ReturnsFunctionThrows
STRaster Paste(STRaster ThePastee,STRaster TheReceiver,
     double PercentOpaque,boolean DoPad,boolean DoMax)
Exception
STRaster Paste(STRaster ThePastee,STRaster TheReceiver,double PercentOpaque,
     boolean DoPad,boolean DoMax,int DestinLeft,int DestinTop)
Exception

Static Functions


STRaster Paste(STRaster ThePastee,STRaster TheReceiver,
     double PercentOpaque,boolean DoPad,boolean DoMax) Exception

Pastes the specified Source raster into the destination raster based on their reference
coordinates

Parameters:
    TheOriginalSource - STRaster that will be pasted into the output raster
    TheOutput - STRaster that will contain the Input raster when done
    PercentOpaque - 0 for transaprent, 100 for opaque
    DoPad - True to have the output raster padded to include the area of the input raster
    DoMax - True to use the maximum value from the input or output rasters
Returns: Returns the existing raster or a new one as the raster may need to be padded


STRaster Paste(STRaster ThePastee,STRaster TheReceiver,double PercentOpaque,
     boolean DoPad,boolean DoMax,int DestinLeft,int DestinTop) Exception

Pastes the specified Source raster into the destination raster based on
specified pixel coordinates.

Parameters:
    TheOriginalSource - STRaster that will be pasted into the output raster
    TheOutput - STRaster that will contain the Input raster when done
    PercentOpaque - 0 for transaprent, 100 for opaque
    DoPad - True to have the output raster padded to include the area of the input raster
    DoMax - True to use the maximum value from the input or output rasters
Returns: Returns the existing raster or a new one as the raster may need to be padded