User Tools

Site Tools


api:dk11:delphi:gislayerpixel.tgis_layerpixel



TGIS_LayerPixel class

DK for Delphi | GisLayerPixel.TGIS_LayerPixel | Classes | Constructors | Fields | Methods | Properties | Events

Abstract base class for georeferenced pixel and raster layers, providing shared bitmap and numeric grid infrastructure.

Available also on: .NET | Java | ActiveX | Python.

Syntax

// Delphi
type
  TGIS_LayerPixel = class( TGIS_Layer )
  end;
// C++ Builder
class PASCALIMPLEMENTATION TGIS_LayerPixel : public TGIS_Layer
{
};

Inheritance

Constructors

Inherited Overrides Protected
Name Visibility Description
Create public Creates a layer with default parameters.
(Overrides TGIS_Layer.Create)
Create(String) public Creates a layer and sets the Path property.
(Inherited from TGIS_Layer)

Fields

Inherited Protected
Name Visibility Description
activeTransform protected True when Transform is assigned and its Active flag is True.
affineTransform protected Affine transformation parameters and precomputed values used for world file georeferencing.
alphaAssociated protected True if alpha values are associated with color channels in the source image.
alphaBuffer protected Alpha data buffer.
altitudeZones protected Table of altitude-to-color mapping zones.
assignedColorRamp protected Cached color ramp values from Params.Pixel.ColorRamp to improve coloring performance.
asWritable protected True if LockPixels was requested in writable mode.
bandMask protected Band mask used by the LockPixels function.
bandsDefinition protected Pixel band definition describing band content, coding, and layout.
bandsMap protected Band numbers used as red, green, blue, and alpha channels.
baseCellHeight protected Original cell height preserved for restoration after transformation.
baseCellWidth protected Original cell width preserved for restoration after transformation.
baseProjectedExtent protected Base projected extent used as a helper for rotations.
bigEndian protected True if byte order is big-endian, from most significant to least significant byte.
bitPalette protected Bitmap palette (must follow infoHeader).
bitsPerBand protected Bits per pixel for each band.
bitsPerPixel protected Total number of bits per pixel for uncompressed data.
bitsSkipLeft protected Bits to skip on the left for each band.
bitsSkipRight protected Bits to skip on the right for each band.
blueTransp protected Transparency lookup table for blue channel values.
bytesPerBand protected Bytes per pixel for each band.
bytesPerPixel protected Total number of bytes per pixel for all bands.
colorNoData protected Color used for NoData values.
colorsNo protected Number of colors in the palette.
corFullRGB protected Full RGB color mapping.
corFullRGB1 protected Full RGB color mapping table that maps exactly one source color to one target color.
corRGB protected RGB color correction table.
defaultPartialTransparent protected Default setting for using the alpha band.
dstGrid protected Manipulated grid data.
extZoom protected Zoom factor used when importing grids together with setFileScale.
extZoomX protected Horizontal zoom factor used when importing grids together with setFileScaleXY.
extZoomY protected Vertical zoom factor used when importing grids together with setFileScaleXY.
FActive protected True if the layer is active.
(Inherited from TGIS_Layer)
FAddition protected Additional integer value.
(Inherited from TGIS_Layer)
FAge protected Layer age or last modification timestamp.
(Inherited from TGIS_Layer)
FAntialias protected Enables antialias scaling for selected image formats such as PNG and JPG.
FAntialiasFilter protected Scaling filter (like Linear, Lanczos) to be used for scaling images and grids.
FBandsCount protected Number of raster bands in the source file.
FBasemap protected True if the layer is interpreted as a basemap.
(Inherited from TGIS_Layer)
FBasemapDraw protected True if the layer is currently being drawn inside a basemap thread.
(Inherited from TGIS_Layer)
FBitHeight protected Height of a layer in pixels.
FBitmapFormat protected Current bitmap pixel format; currently ARGB is supported.
FBitmapLinesOrder protected Current bitmap line order; currently downward order is supported.
FBitWidth protected Width of a layer in pixels.
FCachedPaint protected False if layer must be painted directly (bypassing cache).
(Inherited from TGIS_Layer)
FCapabilities protected List of image sub-formats supported by this layer, associated with file name extensions.
FCaption protected Layer caption.
(Inherited from TGIS_Layer)
FCellHeight protected Height of one raster cell in pixels for tiled or block-based access.
FCellWidth protected Width of one raster cell in pixels for tiled or block-based access.
FCodePage protected Code page in which text is stored.
(Inherited from TGIS_Layer)
FCodePageForced protected Code page forced by the project file or property setting.
(Inherited from TGIS_Layer)
FCollapsed protected True if the layer is collapsed in the legend hierarchy.
(Inherited from TGIS_Layer)
FComments protected Additional comments.
(Inherited from TGIS_Layer)
FConfigFile protected Configuration file handle.
(Inherited from TGIS_Layer)
FConfigFile2 protected Configuration file handle.
(Inherited from TGIS_Layer)
FConfigName protected Configuration file name.
(Inherited from TGIS_Layer)
FCS protected Layer CRS (Coordinate Reference System) object.
(Inherited from TGIS_Layer)
FCurrentPage protected Zero-based index of the current page in a multi-page raster file such as TIFF (Tagged Image File Format).
FCustomData protected List of custom data.
(Inherited from TGIS_Layer)
FCuttingPolygon protected Polygon used to clip the visible or processed raster area.
FDormantMode protected Dormant mode for the layer.
(Inherited from TGIS_Layer)
FDriver protected Layer driver.
(Inherited from TGIS_Layer)
FExtent protected Layer extent.
(Inherited from TGIS_Layer)
FExtent3D protected Three-dimensional layer extent.
(Inherited from TGIS_Layer)
FExtentPixelAdjustment protected Modifies draw extent calculation to use pixel centers rather than pixel borders.
FFileCopyright protected Additional textual information about layer copyright.
(Inherited from TGIS_Layer)
FFileInfo protected Additional textual information about the layer, such as compression, pixel count, and copyright.
(Inherited from TGIS_Layer)
FForcedBandsDefinition protected Forced raster band definition serialized as text.
FGridBand protected Index of the source band used as the grid band.
FGridOperation protected Grid operation callback.
FGUID protected Unique layer identifier.
(Inherited from TGIS_Layer)
FHideFromLegend protected True if layer should not be visible in a legend.
(Inherited from TGIS_Layer)
FIcon protected Layer icon displayed in the legend.
(Inherited from TGIS_Layer)
fileStream protected Stream used to read bitmap or raster data.
FInPaint protected True while the layer is in the paint process.
(Inherited from TGIS_Layer)
FInterpretation protected Forced raster interpretation mode controlling whether the layer is treated as an image or grid.
FIsContrastEnhanced protected True if the image contrast was enhanced automatically.
FIsGridImage protected True if the layer is currently interpreted as a grid image.
FIsLocked protected True if the layer is in the locked state.
(Inherited from TGIS_Layer)
FIsModified protected True if the layer structure or geometry has been modified.
(Inherited from TGIS_Layer)
FIsNativeGridImage protected True if the source image is natively a grid image.
FIsOpened protected True if the layer has been opened.
(Inherited from TGIS_Layer)
FIsPrepared protected True if the layer has been prepared.
(Inherited from TGIS_Layer)
FIsReadOnly protected Read-only flag.
(Inherited from TGIS_Layer)
FIsTiled protected True if the layer uses tiled raster access.
FMaxThresholdZ protected Maximum grid value threshold to display or process.
FMaxTileSize protected Maximum allowed tile size for the layer.
(Inherited from TGIS_Layer)
FMaxZ protected Maximum elevation or grid value in the raster dataset.
FMinThresholdZ protected Minimum grid value threshold to display or process.
FMinZ protected Minimum elevation or grid value in the raster dataset.
FMultiUserMode protected Multiuser mode.
(Inherited from TGIS_Layer)
FName protected Layer name.
(Inherited from TGIS_Layer)
FNoDataColor protected Default color used by PixelExportManager to fill empty or NoData areas.
FNoDataValue protected Value assigned to grid cells whose data value is unknown.
FOnBusy protected Busy event fired regularly during long-running operations.
(Inherited from TGIS_Layer)
FOnPaintLayer protected PaintLayer event fired during Paint and related drawing operations.
(Inherited from TGIS_Layer)
FOnPassword protected Fired when opening a layer to resolve required user name or password values.
(Inherited from TGIS_Layer)
FOnRead protected Fired for each file read request.
(Inherited from TGIS_Layer)
FOnWrite protected Fired for each file write request.
(Inherited from TGIS_Layer)
forceCachedMode protected Set to True to force cached bitmap drawing.
(Inherited from TGIS_Layer)
forViewer protected True if cached viewer parameters are valid.
FOverlappedExtentMargin protected Overlapped extent margin.
(Inherited from TGIS_Layer)
FPagesCount protected Number of pages in a multi-page raster file such as TIFF (Tagged Image File Format).
FParamsList protected List of parameter sets grouped by section.
(Inherited from TGIS_Layer)
FParentLayer protected Parent layer.
(Inherited from TGIS_Layer)
FPath protected Layer path.
(Inherited from TGIS_Layer)
FPathTAB protected Path to the TAB georeferencing file associated with the raster.
FPixelOperation protected Pixel operation callback.
FPixelSize protected Size of one raster pixel in layer units.
FProgressive protected If true (default) then layer can be drawn as progressive.
FProjectedExtent protected Cached projected extent.
(Inherited from TGIS_Layer)
FProjectedExtentBase protected Cached projected extent base extent in unprojected layer coordinates.
(Inherited from TGIS_Layer)
FProjectedExtentEPSG protected Cached projected extent layer CRS (Coordinate Reference System) context.
(Inherited from TGIS_Layer)
FProjectedExtentRotationAngle protected Cached projected extent rotation angle context.
(Inherited from TGIS_Layer)
FProjectedExtentRotationPoint protected Cached projected extent rotation point context.
(Inherited from TGIS_Layer)
FProjectedExtentViewerEPSG protected Cached projected extent viewer CRS (Coordinate Reference System) context.
(Inherited from TGIS_Layer)
FRenderer protected Handle to a renderer used for drawing shapes.
(Inherited from TGIS_Layer)
fromBand protected Band number used by the LockPixels function.
FRotationAngle protected Rotation angle of the raster in layer coordinate system units, applied around the image center.
FShadowAngle protected Shadow angle used for grid shadowing.
FStatistics protected Statistics engine.
(Inherited from TGIS_Layer)
FStream protected Reference to a potential layer underlying stream.
(Inherited from TGIS_Layer)
FSubFormat protected Current sub-format information.
FSubLayers protected Sublayer list.
(Inherited from TGIS_Layer)
FSubType protected Sublayer type flags for this layer.
(Inherited from TGIS_Layer)
FSupportsAsync protected Indicates whether the layer implements asynchronous operations.
(Inherited from TGIS_Layer)
FSupportsAutoStyle protected Indicates whether the layer supports auto styling.
(Inherited from TGIS_Layer)
FSupportsTiledPaint protected Indicates whether the layer supports tiled paint.
(Inherited from TGIS_Layer)
FTag protected Tag value.
(Inherited from TGIS_Layer)
FTagInternal protected Internal Tag value.
(Inherited from TGIS_Layer)
FTagPointer protected Pointer tag value.
(Inherited from TGIS_Layer)
FTileable protected True if the layer is currently printed or exported using tiles.
(Inherited from TGIS_Layer)
FTiledDrawMode protected Current tiled draw mode used while drawing in a basemap thread.
(Inherited from TGIS_Layer)
FTransform protected Custom transformation.
(Inherited from TGIS_Layer)
FTransparency protected Transparency value.
(Inherited from TGIS_Layer)
FUnSupportedOperations protected Set of operations not supported by the layer.
(Inherited from TGIS_Layer)
FUseConfig protected True if configuration file support is enabled.
(Inherited from TGIS_Layer)
FUserObject protected User object owned by the layer and destroyed when the layer is destroyed or when replaced.
(Inherited from TGIS_Layer)
FViewer protected Reference to viewer object.
(Inherited from TGIS_Layer)
greenTransp protected Transparency lookup table for green channel values.
gridCol protected Stores values for recently processed grid cell columns.
hisBlue protected Histogram values for the blue channel.
hisGray protected Histogram for the gray channel.
hisGreen protected Histogram values for the green channel.
hisRed protected Histogram values for the red channel.
importMode protected True if image will be imported; False by default.
inDraw protected True while layer drawing is still in progress to avoid circular drawing calls.
(Inherited from TGIS_Layer)
internalRotation protected True if rotation is performed around the image center internally.
internalTransparentColor protected Native transparent color used by some layer formats.
intLineWidth protected Internal raster scan-line width in bytes.
is48BitsPerPixel protected True if the source data uses 48 bits per pixel.
isBasicHistogram protected True if a basic histogram is available.
isBGR protected True if image bands are stored in BGR order.
isBitsString protected True if the image file data is stored as a raw bit string.
isBuilt protected True if the layer was newly generated or built in memory.
isColorNoDataGDAL protected True if a NoData color is defined, typically from GDAL metadata.
isCorFullRGBblue protected Full RGB color mapping for the blue band.
isCorFullRGBgreen protected Full RGB color mapping for the green band.
isCorFullRGBred protected Full RGB color mapping for the red band.
isFromNet protected True if the image is being read from a network source.
isGrayScaleImage protected True if the image is greyscale.
isHistogram protected True if a histogram is available.
isInverted protected True if image values are inverted.
isMerged protected True if the image is merged with another image; False by default.
isPartialTransparent protected True if the alpha band is effectively used and pixels can be partially transparent.
isPlanar1 protected True if planar configuration 1 is used; False if planar configuration 2 is used.
isShadow protected True if DEM (Digital Elevation Model) shadowing is enabled.
lineAlphaBuffer protected Line buffer for alpha bytes.
lockUsingNo protected Number of active LockPixels users.
makeBlueMap protected True if the image must be colorized by the blue channel map; False by default.
makeColorsByVals protected True if the image must be colorized from data values; False by default.
makeFullRGBMap protected True if the image must be colorized using the full RGB mapping table; False by default.
makeGrayMap protected True if the image must be converted to grayscale by map settings; False by default.
makeGreenMap protected True if the image must be colorized by the green channel map; False by default.
makeRedMap protected True if the image must be colorized by the red channel map; False by default.
makeRGBMap protected True if the image must be colorized by map settings; False by default.
makeSomeCorrection protected True if any bitmap pixel correction is required.
makeTransparent protected True if image must be transparent; False by default.
mapGray2RGB protected Gray-to-RGB lookup table used when converting greyscale pixel values to display colors.
mapRGB protected RGB color mapping table.
memoryResident protected True if the layer was created and stored entirely in memory.
mmzgbn protected Band number used to read minimum and maximum valid values for grid data.
modifiedMaxHeight protected True if MaxHeight was set by the user.
modifiedMinHeight protected True if MinHeight was set by the user.
oBand protected Locked single-band data for layers whose band values use more than 8 bits per sample.
oBitmap protected ARGB pixel data for a generated or built layer.
oGrid protected Grid data for a generated or built layer.
oLayer protected Layer object used as the source or target for data modification.
outCS protected Output coordinate system used for coordinate transformation.
paletteCpy protected Copy of the bitmap palette.
paramsCache protected List of prepared parameters.
(Inherited from TGIS_Layer)
paramsCacheUpdated protected True if cached parameters are ready for rendering.
(Inherited from TGIS_Layer)
prevShadowDelta protected Difference between the current and previous shadow values used during shadowing calculations.
prevShadowValue protected Shadow value calculated for the previously processed pixel or grid cell.
readableNo protected Number of active read-only LockPixels uses.
realBitCount protected Actual bits per pixel in the source raster.
realLineWidth protected Source raster scan-line width in bytes.
redTransp protected Transparency lookup table for red channel values.
rgbAsGrid protected True if the pixel image is forced to be interpreted as a grid.
rotateCos protected Cosine value used for rotation calculations.
rotateSin protected Sine value used for rotation calculations.
rotationPoint protected Center point of the image used for rotation.
scaledHeight protected Scaled raster height used during 2D scaling.
scaledWidth protected Scaled raster width used during 2D scaling.
scaleX protected Horizontal raster scale factor derived from affine or world file georeferencing.
scaleXFactor protected Sign of the X scale factor: -1 when World File scaleX is negative, otherwise 1.
scaleY protected Vertical raster scale factor derived from affine or world file georeferencing.
scaleYFactor protected Sign of the Y scale factor: -1 when World File scaleY is positive, otherwise 1.
sizeShadow protected Approximate pixel size in meters, used for shadowing calculations that depend on the pixel width-to-height ratio.
srcGrid protected Original layer grid data.
swapBW protected True if black and white values are swapped.
tempFileName protected Temporary file name used for large data storage.
tempFileStream protected Temporary file stream used for large data storage.
testMask protected Bit mask values used to convert source data to 24-bit format.
unrotateCos protected Cosine value used for reverse rotation calculations.
unrotateSin protected Sine value used for reverse rotation calculations.
unusedAlpha protected True if the alpha band is unused.
unusedBlue protected True if the blue band is unused.
unusedGreen protected True if the green band is unused.
unusedRed protected True if the red band is unused.
useColorRamp protected True if single values are mapped to colors using a color ramp.
View3D public 3D representation settings for the layer.
(Inherited from TGIS_Layer)
wasTransform protected True if a transform was previously assigned.
wordDivider protected Divider used to map 16-bit band values to 8-bit values.
wordMultiply protected Multiplier used to map 16-bit band values to 8-bit values.
wordShift protected Shift used to map 16-bit band values to 8-bit values.
workAlpha protected Working buffer for alpha data processing.
workDestRect protected Cached destination rectangle from the last draw operation.
workSrcRect protected Cached source rectangle from the last draw operation.

Methods

Inherited Overrides Protected
Name Visibility Description
addTransparency protected Applies transparency defined by transparent zones to image pixels.
Alive public Makes a layer non-dormant.
(Inherited from TGIS_Layer)
ApplyAntialiasSettings(Boolean) public Applies antialias settings used in scaling operations.
ApplyAntialiasSettings(Boolean; TGIS_ScalingFilter) public Applies antialias settings used in scaling operations.
ApplyAutoStyle public Applies auto-styling to the layer.
(Inherited from TGIS_Layer)
ApplyAutoStyle(Boolean) public Applies auto-styling to the layer.
(Inherited from TGIS_Layer)
applyColorsCorrectionByVals protected Applies brightness, contrast, and color correction from pixel parameters to the final correction table.
applyConfigOptions protected Applies layer option settings from a configuration file.
(Overrides TGIS_Layer.applyConfigOptions)
applyConfigProjection(TGIS_ConfigAbstract) protected Applies projection settings from a configuration file.
(Inherited from TGIS_Layer)
applyConfigProjection(TGIS_ConfigAbstract; TGIS_Layer) protected Applies projection settings from a configuration file.
(Inherited from TGIS_Layer)
ApplyCuttingPolygon public Sets a clipping polygon for the layer.
(Overrides TGIS_Layer.ApplyCuttingPolygon)
ARGB2Gray protected Converts an ARGB bitmap buffer to gray scale.
AssignedParentLayerInternal public Assigns a parent pixel layer for hierarchical layer types such as WMTS (Web Map Tile Service).
bandsMappingChanging protected Checks whether the current band mapping differs from the default mapping.
basePointRot protected Computes the point position after world file rotation is applied.
basePointUnRot protected Computes the original position of a rotated point.
baseRotatedExtent protected Computes the bounding extent after world file rotation is applied.
baseUnrotatedExtent protected Computes the original extent for a rotated extent.
Build(Boolean; TGIS_CSCoordinateSystem; TGIS_Extent; Double) public Builds an in-memory bitmap or grid layer.
Build(Boolean; TGIS_CSCoordinateSystem; TGIS_Extent; Integer; Integer) public Builds an in-memory bitmap or grid layer.
Build(String; Boolean; TGIS_CSCoordinateSystem; TGIS_Extent; Double; TGIS_LayerPixelSubFormat) public Builds a bitmap or grid layer.
Build(String; Boolean; TGIS_CSCoordinateSystem; TGIS_Extent; Integer; Integer; TGIS_LayerPixelSubFormat) public Builds a bitmap or grid layer.
Build(String; TGIS_CSCoordinateSystem; TGIS_Extent; Double) public Builds a bitmap image layer.
Build(String; TGIS_CSCoordinateSystem; TGIS_Extent; Integer; Integer) public Builds a bitmap image layer.
calculatePixelsize protected Calculates the pixel size in layer units.
ChangeHash public Changes the hash used to verify layer modifications.
(Inherited from TGIS_Layer)
ClearModified public Sets IsModified flag to false for a layer and its sublayers.
(Inherited from TGIS_Layer)
convertBitsToPixels protected Internal use only.
doApplyAutoStyle protected Applies layer-specific auto-styling implementation.
(Inherited from TGIS_Layer)
Dormant public Makes a layer dormant.
(Overrides TGIS_Layer.Dormant)
DormantGain public Calculates the approximate memory gain in megabytes that can be achieved by calling Dormant.
(Inherited from TGIS_Layer)
Draw public Draws a layer.
(Inherited from TGIS_Layer)
DrawEx public Draws a layer within a defined extent.
(Overrides TGIS_Layer.DrawEx)
drawExtent protected Calculates the device drawing and clipping area.
(Inherited from TGIS_Layer)
drawExtentEx protected Calculates the device drawing and clipping area.
(Overrides TGIS_Layer.drawExtentEx)
DrawFlash public Does nothing and is provided for compatibility only.
(Overrides TGIS_Layer.DrawFlash)
DrawSelected public Draws only the selected item(s) on layer.
(Inherited from TGIS_Layer)
DrawSelectedEx public Draws only the selected item(s) on layer that are within a defined extent.
(Inherited from TGIS_Layer)
DrawSpecial public Draws a layer using the passed renderer.
(Overrides TGIS_Layer.DrawSpecial)
enhanceContrast protected Enhances contrast by proportionally stretching RGB values to the full 0 to 255 range.
ExportLayer public Exports this layer to another pixel layer.
finalARGBMap protected Applies final ARGB band mapping and enables or disables channels.
FinalizeWrite public Performs any operation required to safely finalize a write operation, such as building quad trees for TGIS_FilePixelStore.
findProperPixelLock protected Checks for an existing locked pixel buffer matching the request.
ForEachSubLayer public Calls the callback for the layer and all of its sublayers.
(Inherited from TGIS_Layer)
fullCorrection protected Applies the final correction table to a 32-bit image pixel buffer.
fullRGBCorrection protected Applies full RGB correction to 32-bit image pixels.
GenerateRamp(TGIS_Color; TGIS_Color; TGIS_Color; Double; Double; Double; Boolean; Double; Double; TGIS_ParamsSectionPixel; Boolean) public Generates a color ramp for grid or DEM (Digital Elevation Model) rendering.
GenerateRamp(TGIS_Color; TGIS_Color; TGIS_Color; Double; Double; Double; Boolean; Double; Double; TGIS_ParamsSectionPixel; Boolean; TGIS_ColorInterpolationMode) public Generates a color ramp for grid or DEM (Digital Elevation Model) rendering.
GenerateRampEx(Double; Double; TGIS_ColorMapArray; TGIS_ParamsSectionPixel) public Generates a color ramp for grid or DEM (Digital Elevation Model) rendering from a mapped color array.
GenerateRampEx(Double; Double; TGIS_ColorMapArray; TGIS_ParamsSectionPixel; TGIS_ColorInterpolationMode) public Generates a color ramp for grid or DEM (Digital Elevation Model) rendering from a mapped color array.
getAlphaLine protected Internal use only.
GetAltitudeMapZone public Gets an altitude zone definition used for altitude-to-color mapping.
getAsyncState protected Report data-fetching state for asynchronous raster sources such as ECW.
GetAvailableLayers public Gets a list of layers available in storage.
(Inherited from TGIS_Layer)
GetBitmap public Fills the provided _bitmap array with values for _extent.
getBitmapData protected Fills the provided _bitmap array with values for _extent.
getBitmapPixels protected Gets bitmap layer data in ARGB (Alpha, Red, Green, Blue) format.
GetColorRamp public Calculates the default color ramp color for a grid value.
GetGrid public Fills the provided _grid array with values for _extent.
getGridData protected Fills the provided _grid array with values for _extent.
getLine protected Internal use only.
getLineBasic protected Internal use only.
getLineBits protected Internal use only.
getLinePixels protected Internal use only.
getMapZoneVal_Old protected Parses a legacy mapping zone definition from a string.
getNativeLine protected Internal use only.
getNativeLineGrayGrid protected Internal use only.
getNativeValue protected Internal use only.
GetRawBitmap public Fills the provided _bitmap array with values for _extent.
GetSubLayer public Retrieves the layer identified by name.
(Inherited from TGIS_Layer)
gridToARGBTable protected Converts grid values for the specified extent to ARGB pixels.
histEqPav protected Prepares a correction table using histogram equalization for full-color raster images.
histRGB2Gray protected Prepares a single greyscale histogram from the red, green, and blue channel histograms.
HourglassShake public Notifies about a busy state using an hourglass.
(Inherited from TGIS_Layer)
ImportLayer(TGIS_LayerPixel; TGIS_Extent) public Imports pixel data from an existing pixel layer.
ImportLayer(TGIS_LayerPixel; TGIS_Extent; TGIS_CSCoordinateSystem; Cardinal; Cardinal) public Imports pixel data from an existing pixel layer.
ImportLayer(TGIS_LayerPixel; TGIS_Extent; TGIS_CSCoordinateSystem; Cardinal; Cardinal; TGIS_LayerPixelSubFormat) public Imports pixel data from an existing pixel layer.
importPixelData protected Import and store raster data from another pixel layer.
InitializeWrite public Performs any operation required to safely initialize a write operation, such as batch preparation for TGIS_FilePixelStore.
inversePalette protected Prepares a negative color palette from the current RGB (red, green, blue) palette.
IsGrid public Checks if the layer type is grid.
(Overrides TGIS_Layer.IsGrid)
IsPixel public Checks if the layer type is pixel.
(Overrides TGIS_Layer.IsPixel)
isSectionInVisibilityRange protected Checks whether the section is visible by testing layer properties: Level with MinLevel/MaxLevel, ScaleAsFloat with MinScale/MaxScale, and Zoom with MinZoom/MaxZoom.
(Inherited from TGIS_Layer)
isSublayer protected Checks if the layer is a sublayer.
(Inherited from TGIS_Layer)
IsSupported public Checks if the operation is supported by the layer.
(Inherited from TGIS_Layer)
IsTopology public Checks if the layer type is topology.
(Inherited from TGIS_Layer)
IsVector public Checks if the layer type is vector.
(Inherited from TGIS_Layer)
IsVector3D public Checks if the layer type is vector 3D.
(Inherited from TGIS_Layer)
IsVisible public Checks if the layer is visible in a defined extent and current params.
(Inherited from TGIS_Layer)
lanczos3 protected Evaluates the Lanczos3 resampling filter function.
linear protected Evaluates the linear (triangle) resampling filter function.
Locate public If a given point is located within the image area, returns True and sets output values.
LocateEx public If a given point is located within the image area, returns True and sets output values.
Lock public Locks the layer for burst-mode operation.
(Inherited from TGIS_Layer)
LockEstimate public Estimates the memory size required to lock and update a pixel layer area.
LockPixels(TGIS_Extent; TGIS_CSCoordinateSystem; Boolean) public Locks a fragment of the pixel layer for update operations.
LockPixels(TGIS_Extent; TGIS_CSCoordinateSystem; Double; Boolean) public Locks a fragment of the pixel layer for update operations.
LockPixels(TGIS_Extent; TGIS_CSCoordinateSystem; Double; Integer; Boolean) public Locks a fragment of the pixel layer for update operations.
LockPixels(TGIS_Extent; TGIS_CSCoordinateSystem; Integer; Boolean) public Locks a fragment of the pixel layer for update operations.
LockPixels(TRect; Boolean) public Locks a fragment of the pixel layer for update operations.
LockPixels(TRect; Integer; Boolean) public Locks a fragment of the pixel layer for update operations.
LockPixels(TRect; TGIS_Extent; Integer; Integer; Integer; Boolean) public Locks a fragment of the pixel layer for update operations.
lockThread protected Locks the layer thread.
(Inherited from TGIS_Layer)
Loop(Double; TGIS_Shape; Boolean) public Prepares an enumerator to iterate pixels along or within a shape.
Loop(Double; TGIS_Shape; Integer; Boolean) public Prepares an enumerator to iterate pixels along or within a shape.
Loop(TGIS_Extent; Double; Boolean) public Prepares an enumerator to iterate the layer over an extent.
Loop(TGIS_Extent; Double; Boolean; TGIS_Shape; String; Boolean) public Prepares an enumerator to iterate pixels in the layer.
Loop(TGIS_Extent; Double; Boolean; TGIS_Shape; String; Integer; Boolean) public Prepares an enumerator to iterate pixels in the layer.
Loop(TGIS_Extent; Double; Integer; Boolean) public Prepares an enumerator to iterate the layer over an extent.
Loop(TGIS_Extent; Double; TGIS_Shape; String; Boolean) public Prepares an enumerator to iterate the layer with pixels treated as points.
Loop(TGIS_Extent; Double; TGIS_Shape; String; Integer; Boolean) public Prepares an enumerator to iterate the layer with pixels treated as points.
makeHistogram protected Reads a cached histogram or creates and stores one if needed.
MapColorValue public Maps a color value to a pixel color.
MapGridValue public Maps a grid value to a pixel color.
MapToRaster public Converts map coordinates to a raster pixel location.
MapToRasterRect public Converts a map extent to a raster rectangle.
MarkAsProxy public Marks the layer to be used as a proxy layer.
(Inherited from TGIS_Layer)
MarkModified public Sets IsModified flag to true for a layer and its sublayers.
(Inherited from TGIS_Layer)
MergeLayer public Merges pixel data from another pixel layer into this layer.
Move public Moves a layer up or down in the viewer zorder list.
(Inherited from TGIS_Layer)
MoveEx public Moves a layer up or down in the viewer zorder list (only visible layers).
(Inherited from TGIS_Layer)
MustCalculateStatistics public Verifies whether all statistics required to render the layer are available.
(Inherited from TGIS_Layer)
MustReproject public Checks whether the layer must be reprojected.
(Inherited from TGIS_Layer)
MustSave public Checks whether the layer was modified by editing.
(Overrides TGIS_Layer.MustSave)
Open public Opens the layer.
(Inherited from TGIS_Layer)
OpenAsync public Opens the layer asynchronously.
(Inherited from TGIS_Layer)
openBufferedFileStream protected Opens a buffered file stream for reading.
optimizeParamsCache(Integer) protected Moves the specified section to the top of the cached list.
(Inherited from TGIS_Layer)
optimizeParamsCache(Integer; Boolean) protected Moves the specified section to the top of the cached list.
(Inherited from TGIS_Layer)
Paint public Draws the layer or fires PaintLayer event (if defined).
(Inherited from TGIS_Layer)
Prepare public Opens the layer for non-drawing operations.
(Inherited from TGIS_Layer)
prepareAltitudeMapTable protected Prepares the altitude-to-color lookup table for DEM (Digital Elevation Model) rendering.
prepareColorRamp protected Prepares the cached color ramp array used for raster color mapping.
PrepareForExport public Prepares layer for export.
(Inherited from TGIS_Layer)
prepareMinMaxZ protected Scans the grid to determine minimum and maximum DEM (Digital Elevation Model) values.
prepareMinMaxZGray protected Scans the image to determine minimum and maximum DEM (Digital Elevation Model) values when RGB data is interpreted as a single grid channel.
PrepareParams public Prepares cached rendering parameters for internal use.
(Inherited from TGIS_Layer)
prepareParamsCache protected Prepares the cached section list for rendering.
(Inherited from TGIS_Layer)
prepareParamsCache(String) protected Prepares the cached section list for the specified style.
(Inherited from TGIS_Layer)
prepColorMapTbl protected Prepares the corRGB table using red, green, and blue channel control points.
prepCorTbl protected Prepares a mapping table with no color correction for full-color raster images.
prepFinalCorTable protected Prepares the final color-mapping table for 32-bit ARGB images.
prepFullGrayTable protected Prepares a mapping table for converting a full-color ARGB (32-bit alpha, red, green, blue) bitmap buffer to greyscale.
prepFullRGBMapTbl protected Prepares the full RGB lookup table used for per-channel color correction.
prepGrayMapTbl protected Prepares the mapGray2RGB table for mapping greyscale values to colors using grayMapList mapping control points.
prepRGBHist protected Prepares channel histograms for an ARGB (32-bit alpha, red, green, blue) bitmap buffer.
prepTransparent protected Prepares the transparency lookup table for raster rendering.
PreRecognize public Checks if the layer can read the file.
(Inherited from TGIS_Layer)
Project public Applies a projection on the single point.
(Inherited from TGIS_Layer)
Project3D public Applies a projection on the single point in 3D.
(Inherited from TGIS_Layer)
Project3D_Ref public Applies projection to a single 3D point.
(Inherited from TGIS_Layer)
ProjectExtent public Applies a projection on the extent.
(Inherited from TGIS_Layer)
projectionNeed protected Checks whether image reprojection is required.
Project_Ref public Applies projection to a single point.
(Inherited from TGIS_Layer)
putBitmapRawData protected Writes the provided _bitmap array as raw values for _extent.
PutGrid public Writes grid values into the layer for the area defined by _extent.
RaiseBusyEvent public Fires Busy event of the layer.
(Inherited from TGIS_Layer)
RaiseBusyPrepare public Fires BusyPrepare method of the assigned viewer.
(Inherited from TGIS_Layer)
RaiseBusyRelease public Fires BusyRelease method of the assigned viewer.
(Inherited from TGIS_Layer)
RaiseBusyShake public Fires BusyShake method of the assigned viewer.
(Inherited from TGIS_Layer)
RasterToMap public Converts a raster pixel location to map coordinates.
RasterToMapRect public Converts a raster rectangle to a map extent.
ReadConfig public Reads the layer configuration files.
(Inherited from TGIS_Layer)
ReadConfigParam public Reads a layer configuration parameter.
(Inherited from TGIS_Layer)
readDoubleBE protected Reads an 8-byte floating-point value from big-endian data.
readDoubleLE protected Reads an 8-byte floating-point value from little-endian data.
ReadGridLine public Reads a specific grid line into the preallocated buffer.
RecalcExtent public Recalculates the layer extent.
(Inherited from TGIS_Layer)
RecalcProjectedExtent public Recalculates the projected extent.
(Overrides TGIS_Layer.RecalcProjectedExtent)
Recalculate public Recalculates the minimum and maximum elevation values for the grid.
ReOpen public Reopens the layer.
(Overrides TGIS_Layer.ReOpen)
replaceWorkingFiles protected Replaces the original image with the modified temporary image.
RereadConfig public Rereads the layer configuration files.
(Inherited from TGIS_Layer)
resetMustReproject protected Resets the MustReproject state.
(Inherited from TGIS_Layer)
resolveBandDefintion protected Resolves the band definition from ForceBandLayout or raster metadata.
RevertAll public Reverts layer to its original content.
(Overrides TGIS_Layer.RevertAll)
RootLayer public Returns the absolute parent layer.
(Inherited from TGIS_Layer)
rotationNeed protected Checks whether raster image rotation is required.
SaveAll public Saves the layer and destroys mirrored items.
(Inherited from TGIS_Layer)
SaveData public Saves the entire pixel layer to its file.
(Overrides TGIS_Layer.SaveData)
ScaleGrid(TGIS_GridArray; TGIS_GridArray; Integer; Integer) public Scales a grid array using the default linear resampling filter.
ScaleGrid(TGIS_GridArray; TGIS_GridArray; Integer; Integer; TGIS_ScalingFilter) public Scales a grid array using the specified resampling filter.
setBitmapPalette protected Sets the bitmap palette to a greyscale palette.
setBmpTransparent protected Fill the provided _bitmap array with alpha set to $FF for all pixels.
SetCSByEPSG public Sets the coordinate system using an EPSG code.
(Inherited from TGIS_Layer)
SetCSByWKT public Sets the coordinate system from a WKT (Well-Known Text) string containing a GEOGCS or PROJCS definition.
(Inherited from TGIS_Layer)
SetCSByWKTFile public Sets the coordinate system from a file containing a WKT (Well-Known Text) string, such as a Shapefile .PRJ file.
(Inherited from TGIS_Layer)
SetCurrentFileScale public Sets the current internal file scale; 1.0 means no scaling.
setFileScale protected Sets the internal image scale from destination and source widths.
setFileScaleXY protected Sets the internal image scale from destination and source dimensions.
setFileView protected Sets the internal raster view.
setMapZone(array of Integer; TGIS_Color; TGIS_PixelChannelZone) protected Sets a channel mapping zone in the color map table.
setMapZone(array of Integer; TGIS_Color; TGIS_PixelGrayZone) protected Sets a greyscale mapping zone in the color map table.
setNoDataTable protected Fills the provided _grid array with NoData values.
setPage protected Sets CurrentPage for a multi-page raster image.
setUp protected Performs general pixel layer setup.
(Overrides TGIS_Layer.setUp)
setUp2 protected Performs the second general layer setup step.
(Inherited from TGIS_Layer)
setUp3 protected Performs the third general layer setup step.
(Overrides TGIS_Layer.setUp3)
setUpAsync protected Performs the first general layer setup step asynchronously.
(Inherited from TGIS_Layer)
setUpInternal protected Sets up internal pixel layer parameters and cached state.
setupParams protected Sets up the internal parameters cache.
SetWorld public Sets world file affine transformation parameters.
setWorldFile protected Sets the layer extent from a world file such as .tfw or .bpw.
simpleRGBCorrection protected Applies simple red, green, and blue band corrections to the image.
storeConfigOptions protected Stores layer option settings in a configuration file.
(Overrides TGIS_Layer.storeConfigOptions)
transformExtent protected Transforms an extent using the custom transformation.
(Inherited from TGIS_Layer)
transformNeed protected Checks whether any image transformation is required.
Unlock public Unlocks the layer from burst-mode operation.
(Inherited from TGIS_Layer)
UnlockPixels public Unlocks a fragment and posts any pending changes back to the layer.
unlockThread protected Unlocks the layer thread.
(Inherited from TGIS_Layer)
UnprepareForExport public Finalizes export initialized with PrepareForExport.
(Inherited from TGIS_Layer)
Unproject public Applies reverse projection (recovers from the projection) on the single point.
(Inherited from TGIS_Layer)
Unproject3D public Applies reverse projection to a single 3D point.
(Inherited from TGIS_Layer)
Unproject3D_Ref public Applies reverse projection to a single 3D point.
(Inherited from TGIS_Layer)
UnprojectExtent public Applies reverse projection (recovers from the projection) on the extent.
(Inherited from TGIS_Layer)
Unproject_Ref public Applies reverse projection to a single point.
(Inherited from TGIS_Layer)
ViewerReParent public Sets the viewer for the layer and its sublayers.
(Inherited from TGIS_Layer)
WriteConfig public Writes the layer configuration files.
(Inherited from TGIS_Layer)

Properties

Inherited Protected
Name Visibility Description
Active public True if the layer is visible and can be localized.
(Inherited from TGIS_Layer)
Addition public Additional blending value.
(Inherited from TGIS_Layer)
Age public Time elapsed since the layer was created.
(Inherited from TGIS_Layer)
AltitudeMapZonesCount public Number of altitude map zones.
Antialias public Antialias scaling for selected layers such as PNG and JPG.
AntialiasFilter public Scaling filter (such as Linear or Lanczos) used for scaling images and grids.
BandsCount public Number of bands in a file.
Basemap public True if the layer must be treated as a basemap for background painting.
(Inherited from TGIS_Layer)
BasemapDraw public True if the layer is currently being drawn in a basemap thread.
(Inherited from TGIS_Layer)
BitHeight public Height of the layer in pixels.
BitmapFactory public Hint indicating which bitmap factory should be used internally, if applicable.
BitWidth public Width of the layer in pixels.
CachedPaint public False if the layer must be painted directly, bypassing the cache.
(Inherited from TGIS_Layer)
Capabilities public Pixel sub-format list available for write operations.
Caption public Layer caption; if not assigned directly, it will be filled with Name when the layer is added to the viewer.
(Inherited from TGIS_Layer)
CellHeight public Height of a cell in pixels.
CellWidth public Width of a cell in pixels.
CodePage public Code page used to store text.
(Inherited from TGIS_Layer)
Collapsed public True if the layer is collapsed in the legend, meaning only the layer title is visible.
(Inherited from TGIS_Layer)
Comments public Additional user comments.
(Inherited from TGIS_Layer)
ConfigFile public Configuration file handle.
(Inherited from TGIS_Layer)
ConfigName public Configuration file name.
(Inherited from TGIS_Layer)
CS public Coordinate Reference System (CRS) assigned to the layer.
(Inherited from TGIS_Layer)
CurrentPage public Current page of multipage file.
CustomData public List of custom, user-defined data saved to and restored from config and project files.
(Inherited from TGIS_Layer)
CuttingPolygon public Cutting polygon that defines the valid area of the input image.
DefaultSubFormat public Default subformat information.
DirectMode public True if the layer is direct-mode (bypassing cache).
(Inherited from TGIS_Layer)
DormantMode public Memory-management mode for the layer.
(Inherited from TGIS_Layer)
Driver public The layer's driver name.
(Inherited from TGIS_Layer)
Extent public Extent of the layer.
(Inherited from TGIS_Layer)
Extent3D public Three-dimensional extent of the layer.
(Inherited from TGIS_Layer)
ExtentPixelAdjustment public Modifies draw extent calculation to be performed on pixel centers rather than on pixel borders.
FileCopyrights public Copyright information about the layer.
(Inherited from TGIS_Layer)
FileInfo public Additional textual information about the layer such as compression, number of pixels, copyright, etc.
(Inherited from TGIS_Layer)
ForcedBandsDefinition public Forced interpretation of bands in a layer.
GridBand public Grid band number.
GUID public Unique layer identifier.
(Inherited from TGIS_Layer)
HideFromLegend public False if the layer should not be visible in the legend.
(Inherited from TGIS_Layer)
Icon public Layer icon presented in the legend.
(Inherited from TGIS_Layer)
InPaint public True while the layer is being painted.
(Inherited from TGIS_Layer)
Interpretation public Determines whether the layer is interpreted as a grid or as an image.
IsExportable public True if the layer is exportable.
(Inherited from TGIS_Layer)
IsGridImage public True if the image is interpreted as a grid.
IsLocked public True if the layer is in locked state.
(Inherited from TGIS_Layer)
IsModified public True if structure (field, geometry etc) was modified.
(Inherited from TGIS_Layer)
IsNativeGridImage public True if the image is stored as a native grid.
IsOpened public True if the layer is opened and is ready for operations.
(Inherited from TGIS_Layer)
IsPersistent public True if the layer is persistent.
(Inherited from TGIS_Layer)
IsReadOnly public True if the layer is read-only.
(Inherited from TGIS_Layer)
IsTiled public True if the layer is tiled.
IsTopmost public True if the layer can be interpreted as the topmost (trackable) layer.
(Inherited from TGIS_Layer)
Layer3D public Mode of 3D layer operations.
(Inherited from TGIS_Layer)
MaxHeight public Maximum elevation value of the grid.
MaxHeightThreshold public Maximum threshold of the grid elevation values to display.
MaxTileSize public Maximum allowed tile size for the layer.
(Inherited from TGIS_Layer)
MinHeight public Minimum elevation value of the grid.
MinHeightThreshold public Minimum threshold of the grid elevation values to display.
MultiUserMode public Multiuser access mode for the layer.
(Inherited from TGIS_Layer)
Name public Layer name.
(Inherited from TGIS_Layer)
NoDataColor public Default color used by PixelExportManager to fill empty areas.
NoDataValue public Grid NoData value used to identify unassigned-data areas in a grid.
OverlappedExtentMargin public Overlap margin applied to the layer extent.
(Inherited from TGIS_Layer)
PageCount public Number of pages in an image file.
Params public Returns the parameter section for the pixel layer.
ParamsList public List of all parameter sections attached to the current layer.
(Inherited from TGIS_Layer)
ParentLayer public Parent layer of a sublayer.
(Inherited from TGIS_Layer)
Path public Path to file holding the layer's data.
(Inherited from TGIS_Layer)
PathTAB public Path to a TAB reference file.
PathWithDriver public Path to file with the layer's data extended with driver name.
(Inherited from TGIS_Layer)
Progressive public If True (default), the layer can be drawn progressively.
ProjectedExtent public Extent of the layer in projected units.
(Inherited from TGIS_Layer)
Renderer public Handle to a renderer used for drawing shapes.
(Inherited from TGIS_Layer)
Statistics public Layer statistics engine.
(Inherited from TGIS_Layer)
Stream public Stream providing layer data as an alternative to reading from the file specified by Path.
(Inherited from TGIS_Layer)
SubFormat public Current sub-format information.
SubLayers public List of sublayers belonging to the layer.
(Inherited from TGIS_Layer)
SubType public Subtype flags describing the layer role within a layer hierarchy.
(Inherited from TGIS_Layer)
SupportsAsync public Indicates whether the layer implements asynchronous operations.
(Inherited from TGIS_Layer)
SupportsAutoStyle public Indicates whether the layer supports auto styling.
(Inherited from TGIS_Layer)
SupportsTiledPaint public Indicates whether the layer supports tiled paint.
(Inherited from TGIS_Layer)
Tag public Tag has no predefined meaning.
(Inherited from TGIS_Layer)
TagInternal public TagInternal has no predefined meaning.
(Inherited from TGIS_Layer)
TagPointer public TagPointer has no predefined meaning.
(Inherited from TGIS_Layer)
Tileable public True if the layer is currently being printed or exported using tiles.
(Inherited from TGIS_Layer)
TiledDrawMode public Indicates whether the layer is currently being drawn by the tiler.
(Inherited from TGIS_Layer)
Transform public Custom coordinate transformation applied to the layer.
(Inherited from TGIS_Layer)
Transparency public Transparency value for the layer (0..100).
(Inherited from TGIS_Layer)
UnSupportedOperations public Set of operations not supported by the layer.
(Inherited from TGIS_Layer)
UseConfig public True if the configuration file is active.
(Inherited from TGIS_Layer)
UserObject public Associates a user-defined object with the layer.
(Inherited from TGIS_Layer)
Viewer public Reference to the viewer that owns or displays this layer.
(Inherited from TGIS_Layer)
ZOrder public Layer position relative to all other layers.
(Inherited from TGIS_Layer)
ZOrderEx public Layer position relative to other visible layers.
(Inherited from TGIS_Layer)

Events

Inherited Protected
Name Visibility Description
GridOperationEvent published Grid operation event.
PixelOperationEvent published Pixel operation event.

Remarks

Pixel.Params operations

For specifying some more advanced pixel layer appearances, such as color mapping, transparent zones, etc., the property Pixel.Params should be used.

Color Map Zones

For properties, such as: RedMapZones, BlueMapZones, GreenMapZones, it is possible to create a section for different values zones:

lp.Params.Pixel.RedMapZones.Add("1, 100, 0, 127"); 
lp.Params.Pixel.RedMapZones.Add("200, 100, 127, 255"); 

The general format is:

"start_value,end_value,start_value_mapped,end_value_mapped"

Where:

  • start_value
    is the starting value of a zone expressed in native layer values (so for 16-bit layers it can be above 255);
  • end_value
    is a the end value of a zone expressed in native layer values (so for 16-bit layers can be above 255);
  • start_value_mapped
    is the starting value of a zone expressed as a RGB channel value (0..255);
  • end_value_mapped
    is the end value of a zone expressed as a RGB channel value (0..255).

Values between the start_value and end_value will be smoothly mapped to values between the start_value_mapped and end_value_mapped. start_value_mapped can be smaller then end_value_mapped to achieve inversion.

Accepted values are integer, like 37 or hexadecimal like $25.

FullRGB zones

FullRGB zones are used to map one color to another.

lp.Params.Pixel.RedMapZones.Add("$EFEFEF, $FFFFFF, $00FF00"); 
lp.Params.Pixel.RedMapZones.Add("$000000, $0F0F0F, $0000FF"); 

The general format is:

"start_color,end_color,mapped_color"

Where:

  • start_color
    is the starting color expressed as a RGB value;
  • end_color
    is the end color expressed as a RGB value;
  • mapped_color
    is the mapped color expressed as a RGB value.

If a color is between the start_color and end_color, then it will be mapped to a mapped_color.

The operation “between” is done per channel. So, construction between $102030 and $A0B0C0 means that any color with R:$10..$A0, G:$20..$B0 and B:$30..$C0 will be mapped. This can be used, for example, to match any color that is close to white to another color.

Accepted color values are RGB integer, like 255, hexadecimal like $0000FF, R:G:B like 0:0:255, or using names: AQUA, BLACK, BLUE, FUCHSIA, GRAY, GREEN, LIME, MAROON, NAVY, OLIVE, PURPLE, RED, SILVER, TEAL, WHITE and YELLOW.

If the last provided parameter is BGR, like $112233,$AABBCCF,BGR, then the color will be interpreted as BGR, not RGB.

Gray zones

Gray zones are used to map gray to color:

lp.Params.Pixel.GrayMapZones.Add("0, 127, $0000A0, $0000FF"); 
lp.Params.Pixel.GrayMapZones.Add("127, 255, $A00000, $FF0000FF"); 

The general format is:

"start_value, end_value, start_color, end_color"

Where:

  • start_value
    is the starting value of a gray-scale image (0..255);
  • end_value
    is a the end value of a gray-scale image (0..255);
  • start_color
    is the starting color expressed as a RGB value;
  • end_color
    is the end color expressed as a RGB value.

Values between the start_value and end_value will be smoothly mapped to values between the start_color and endcolor. start_value can be smaller then the end_value to achieve an inversion.

The operation “between” is done per channel. So construction between $102030 and $A0B0C0 means that any color with R:$10..$A0, G:$20..$B0 and B:$30..$C0 will be mapped.

Accepted color values are RGB integer like 255, hexadecimal like $0000FF, R:G:B like 0:0:255, or names: AQUA, BLACK, BLUE, FUCHSIA, GRAY, GREEN, LIME, MAROON, NAVY, OLIVE, PURPLE, RED, SILVER, TEAL, WHITE and YELLOW.

If the last provided parameter is BGR, like $112233, $AABBCCF, BGR, the color will be interpreted as BGR, not RGB.

Transparency zones

Transparency zones are used to define which color should be transparent:

lp.Params.Pixel.TransparentZones.Add("$EFEFEF, $FFFFFF"); 
lp.Params.Pixel.TransparentZones.Add("$000000, $0F0F0F"); 

The general format is:

"start_color, end_color"

Where:

  • start_color
    is the starting color expressed as a RGB value;
  • end_color
    is the end color expressed as a RGB value;

If color is between the start_color and end_color, it will be mapped as transparent.

This operation “between” is done per channel. So construction between $102030 and $A0B0C0 means that any color with R:$10..$A0, G:$20..$B0 and B:$30..$C0 will be mapped. This can be used, for example, to match any color that is close to white to transparent.

Accepted color values are RGB integer like 255, hexadecimal like $0000FF, R:G:B like 0:0:255, or names: AQUA, BLACK, BLUE, FUCHSIA, GRAY, GREEN, LIME, MAROON, NAVY, OLIVE, PURPLE, RED, SILVER, TEAL, WHITE and YELLOW.

If the last provided parameter is BGR, like $112233, $AABBCCF, BGR, then the color will be interpreted as BGR, not RGB.

Altitude zones

Altitude zones are used to apply grid layer coloring:

lp.Params.Pixel.AltitudeMapZones.Add("100.45, 800.12, $FF0000"); 
lp.Params.Pixel.AltitudeMapZones.Add("800.12, 900.45, $FFFF00"); 

The general format is:

"start_value, end_value, color"

Where:

  1. start_value
    is the starting value of the zone expressed in native layer values;
  2. end_value
    is the end value of the zone expressed in native layer values;
  3. color
    is the RGB value representing the zone color.

Accepted grid values are float values with dot decimal point, like “123.45”.

Accepted color values are RGB integer like 255, hexadecimal like $0000FF, R:G:B like 0:0:255, or names: AQUA, BLACK, BLUE, FUCHSIA, GRAY, GREEN, LIME, MAROON, NAVY, OLIVE, PURPLE, RED, SILVER, TEAL, WHITE and YELLOW.

If the last provided parameter is BGR, like $112233, $AABBCCF, BGR then the color will be interpreted as BGR, not RGB.

Order of operation

Image layers

  1. Selecting which channel will be used to form RGB.
  2. Mapping native layer values to 0..255 (RGB) zone with the use of RedMapZones, GreenMapZones, and BlueMapZones, if any of these exists.
  3. Mapping color-to-color, if FullRGMMapZones exits.
  4. Firing event for additional custom color mapping.
  5. Applying TransparentZoneMaps, if any exists.
  6. Making grayscale, if requested.
  7. Applying GreyScaleZones, if any exist.
  8. Applying histogram correction, if requested.
  9. Applying brightness, contrast, inverse, and RGB channel value modifications.

Grid Layers

  1. Selecting which channel will be used as the grid source.
  2. Applying AltitudeMapZones, if these exist; if not, perform simple mapping to a grayscale image.

All properties of Params.Pixel are available as: TGIS_ParamsPixel class.

Metadata

Available metadata keys:

Metadata Values Default Description
TGIS_LayerPixel.MemoryLayerLimit value in MB 100 Create layers whose size exceeds the value and are backed by a temporary file.
TGIS_LayerPixel.Timeout milliseconds 30000 Timeout for progressive layers (e.g., webtiles) to wait for the complete image .

References

2026/07/11 00:31

Page Tools