User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_layerpixel

TGIS_LayerPixel class

DK11 for .NET | TatukGIS.NDK.TGIS_LayerPixel | Classes | Constructors | Fields | Methods | Properties | Events

Encapsulation of a common image layer - abstract class.

Available also on: Delphi | Java | ActiveX.

Syntax

// C#
public class TGIS_LayerPixel : TGIS_Layer
{
}
' VisualBasic
Public Class TGIS_LayerPixel
  Inherits TGIS_Layer
End Class
// Oxygene
type
  TGIS_LayerPixel = public class( TGIS_Layer )
  end;

Inheritance

→ TGIS_BaseObjectDisposable → TGIS_LayerAbstractTGIS_Layer

Constructors

Inherited Overrides Protected
Name Visibility Description
TGIS_LayerPixel() public Create a layer with default parameters.
(Overrides TGIS_Layer.TGIS_Layer())

Fields

Inherited Protected
Name Visibility Description
activeTransform protected True when Transform is assigned with Active flag set on True.
alphaAssociated protected Image with associated alpha data.
alphaBuffer protected Alpha data buffer.
altitudeZones protected Table with altitude zones
asWritable protected LockPixels used as writable.
bandMask protected From function LockPixels on band.
bandsDefinition protected Band definition.
bandsMap protected Numbers of bands using as red, green, blue and alpha
baseCellHeight protected To restore CellHeight after transformation.
baseCellWidth protected To restore CellWidth after transformation.
baseProjectedExtent protected Helper for rotations.
baseRotation protected Rotation from World file
bigEndian protected Byte order from most significant to least significant.
bitPalette protected Bitmap palette (must follow infoHeader).
bitsPerBand protected Bits per pixel for each band
bitsPerPixel protected Total bits count per pixel (for uncompressed data)
bitsSkipLeft protected Bits to skio on lfet for each band
bitsSkipRight protected Bits to skio on right for each band
blueTransp protected List of transparent colors in Blue channel.
bytesPerBand protected Bytes per pixel for each band
bytesPerPixel protected Summury number bytes per pixel for all bands
cntrRotFactX protected Auxiliary x factor
cntrRotFactY protected Auxiliary y factor
cntrRotX protected Center of rotation x
cntrRotY protected Center of rotation y
colorNoData protected Color used for not defined data.
colorsNo protected Number of colors in palette
corFullRGB protected Full RGB color mapping.
corRGB protected Color correction.
defaultPartialTransparent protected Default using of alpha band.
dstGrid protected Manipulated grid data
extZoom protected Used for importing grid (with association to setFileScale).
extZoomX protected Used for importing grid (with association to setFileScaleXY).
extZoomY protected Used for importing grid (with association to setFileScaleXY).
FActive protected Is layer active?
(Inherited from TGIS_Layer)
FAddition protected Addition value.
(Inherited from TGIS_Layer)
FAge protected Age of the layer.
(Inherited from TGIS_Layer)
FAntialias protected Antialias scaling (for some layers only like PNG and JPG)
FAntialiasFilter protected Scaling filter (like Linear, Lanczos) to be used for scaling images and grids.
FBandsCount protected Number of bands in file.
FBasemap protected True if the layer is interpreted as basemap.
(Inherited from TGIS_Layer)
FBitHeight protected Height of a layer in pixels.
FBitmapFormat protected Actual bitmap format - ARGB available now .
FBitmapLinesOrder protected Actual lines order - Down available now.
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 available image format in this layer (assigned with name extension).
FCaption protected Layer caption.
(Inherited from TGIS_Layer)
FCellHeight protected Height of a cell in pixels.
FCellWidth protected Width of a cell in pixels.
FCodePage protected Code Page in which text has been stored.
(Inherited from TGIS_Layer)
FCodePageForced protected Code Page forced by project file or property setting.
(Inherited from TGIS_Layer)
FCollapsed protected Is layer collapsed?
(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 Projection object.
(Inherited from TGIS_Layer)
FCurrentPage protected Current page i image file (TIF).
FCustomData protected List of custom data.
(Inherited from TGIS_Layer)
FCuttingPolygon protected Cutting polygon
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 Layer extent 3D.
(Inherited from TGIS_Layer)
FFileCopyright protected Additional textual information about layer copyright.
(Inherited from TGIS_Layer)
FFileInfo protected Additional textual information about the layer such as compression, number of pixels, copyright etc.
(Inherited from TGIS_Layer)
FForcedBandsDefinition protected Forced BandsDefinition.
FGridBand protected Band number in file used as grid band.
FGridOperation protected Grid operation event handle.
FHideFromLegend protected True if layer should not be visible in a legend.
(Inherited from TGIS_Layer)
fileStream protected Bitmap file stream.
FInterpretation protected Forced layer interpretation.
FIsContrastEnhanced protected True if image has automatically enhanced contrast.
FIsGridImage protected True if image is grid type.
FIsLocked protected True if layer is in locked state Lock.
(Inherited from TGIS_Layer)
FIsModified protected True if structure (field, geometry etc) was modified.
(Inherited from TGIS_Layer)
FIsNativeGridImage protected True if image is really grid type.
FIsOpened protected True if layer was opened.
(Inherited from TGIS_Layer)
FIsPrepared protected True if layer was opened.
(Inherited from TGIS_Layer)
FIsReadOnly protected Read only flag.
(Inherited from TGIS_Layer)
FIsReopened protected True if layer was reopened.
(Inherited from TGIS_Layer)
FIsTiled protected True if layer is tiled.
FMaxThresholdZ protected Maximum threshold of the grid elevation value to display.
FMaxTileSize protected Maximum allowed tile size for the layer.
(Inherited from TGIS_Layer)
FMaxZ protected Maximum elevation value in grid file.
FMinThresholdZ protected Minimum threshold of the grid elevation value to display.
FMinZ protected Minimum elevation value in grid file.
FMultiUserMode protected Multiuser mode.
(Inherited from TGIS_Layer)
FName protected Layer name.
(Inherited from TGIS_Layer)
FNoDataValue protected Value in the grid file assigned to cells whose value in unknown
FOnBusy protected Busy event.
(Inherited from TGIS_Layer)
FOnPaintLayer protected PaintLayer event.
(Inherited from TGIS_Layer)
FOnPassword protected Will be fired upon opening layer to resolve any username/password
(Inherited from TGIS_Layer)
FOnRead protected Will be fired upon each file Read request.
(Inherited from TGIS_Layer)
FOnWrite protected Will be fired upon each file Write request.
(Inherited from TGIS_Layer)
forceCachedMode protected Set tor True to force cached (bitmap) type of drawing.
(Inherited from TGIS_Layer)
forViewer protected Viewer params are valid
FPagesCount protected Number of pages in an image file (TIF).
FParamsList protected List of parameters set (sections).
(Inherited from TGIS_Layer)
FParentLayer protected Parent layer.
(Inherited from TGIS_Layer)
FPath protected Layer path.
(Inherited from TGIS_Layer)
FPathTAB protected Path to TAB referencing file.
FPixelOperation protected Pixel operation event handle.
FPixelSize protected Size of one image pixel in layer units.
FProgressive protected If true (default) then layer can be drawn as progressive.
FProjectedExtent protected Precalculated projected extent.
(Inherited from TGIS_Layer)
FProjectedExtentBase protected Precalculated projected extent - Base extent (unprojected).
(Inherited from TGIS_Layer)
FProjectedExtentEPSG protected Precalculated projected extent - Layer CS Context.
(Inherited from TGIS_Layer)
FProjectedExtentRotationAngle protected Precalculated projected extent - Rotation context.
(Inherited from TGIS_Layer)
FProjectedExtentRotationPoint protected Precalculated projected extent - Rotation context.
(Inherited from TGIS_Layer)
FProjectedExtentViewerEPSG protected Precalculated projected extent - Viewer CS Context.
(Inherited from TGIS_Layer)
FRenderer protected Handle to a renderer used for drawing shapes.
(Inherited from TGIS_Layer)
fromBand protected Number of band used by function LockPixels.
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 Sub layers list.
(Inherited from TGIS_Layer)
FSubType protected Type of sublayer.
(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)
FTransform protected Custom transformation.
(Inherited from TGIS_Layer)
FTransparency protected Transparency value.
(Inherited from TGIS_Layer)
FUnSupportedOperations protected Set of operations not supported by a layer.
(Inherited from TGIS_Layer)
FUseConfig protected Is config file active?
(Inherited from TGIS_Layer)
FUserObject protected User object.
(Inherited from TGIS_Layer)
FViewer protected Reference to viewer object.
(Inherited from TGIS_Layer)
getLineFunc protected Reading image line (row) function.
greenTransp protected List of transparent colors in Green channel.
gridCol protected To save last grid cell lines values}.
hisBlue protected Histograms for Blue channel.
hisGray protected Histograms for Gray channel..
hisGreen protected Histograms for Green channel.
hisRed protected m Histograms for Red channel.
importMode protected True if image will be imported; False by default.
inDraw protected True if layer paint procedure not yet complete.
(Inherited from TGIS_Layer)
internalTransparentColor protected Native transparent color used in some layers
intLineWidth protected Internal line width of layer in bytes.
is48BitsPerPixel protected True if 48 bits per pixel
isBasicHistogram protected True if basic histogram exist.
isBGR protected True if image bands are saved as BGR .
isBitsString protected Image file data as bits string.
isColorMapping protected True if single values are mapped to color values
isColorNoDataGDAL protected No data color is definrd.
isCorFullRGBblue protected Full RGB color mapping -red band.
isCorFullRGBgreen protected Full RGB color mapping -red band.
isCorFullRGBred protected Full RGB color mapping -red band.
isFromNet protected Reading image from net.
isGrayScaleImage protected True if image is gray scaled.
isHistogram protected True if histogram exist.
isInverted protected True if image is inverted.
isPartialTransparent protected True if alpha band is effective used.
isShadow protected Should shadowing be used?
lineAlphaBuffer protected line buffer (line of bytes).
lockUsingNo protected Nuber of using LockPixels.
makeBlueMap protected True if image must be colorized by blue map; False by default.
makeColorsByVals protected True if image must be colorized by map; False by default.
makeFullRGBMap protected True if image must be colorized by full RGB map; False by default.
makeGrayMap protected True if image must be gray scaled by map; False by default.
makeGreenMap protected True if image must be colorized by green map; False by default.
makeRedMap protected True if image must be colorized by red map; False by default.
makeRGBMap protected True if image must be colorized by map; False by default.
makeSomeCorrection protected If any bitmap pixels changes is needed.
makeTransparent protected True if image must be transparent; False by default.
mapGray2RGB protected Gray mapping table.
mapRGB protected RGB color mapping.
memoryResident protected Layer created in memory.
modifiedMaxHeight protected MaxHeight is set by user.
modifiedMinHeight protected MinHeight is set by user.
oBand protected Single data locked Band of layer when band data are greater than 8-bits.
oBitmap protected ARGB data of generated (built) layer.
oGrid protected Grid data of generated (built) layer.
oLayer protected Layer used for data changing.
one_yRotDivScxRotDivSc protected 1 minus yRotDivSc multiplied by xRotDivSc
outCS protected Output CS used in transformation
paletteCpy protected Copy of bitmap palette
paramsCache protected List of prepared parameters.
(Inherited from TGIS_Layer)
prevShadowDelta protected Last shadow value.
prevShadowValue protected Last shadow value.
readableNo protected Nuber of using as readable LockPixels.
realBitCount protected Bits per pixel.
realLineWidth protected Line width of layer in bytes.
redTransp protected List of transparent colors in Red channel.
rgbAsGrid protected True if pixel image is forced to grid.
scaledHeight protected Used in scaling 2D
scaledWidth protected Used in scaling 2D
scalePixX protected Horizontal scale factor.
scalePixY protected Vertical scale factor.
scaleX protected Horizontal scale factor.
scaleXFactor protected Scale X factor -1 when scaleX in World File is negative otherwise 1
scaleY protected Vertical scale factor.
scaleYFactor protected Scale $ factor -1 when scaleY in World File is positive otherwise 1
scxF_yRotDivScxRotDivSMcsyF protected scaleXFactor minus yRotDivSc multiplied by xRotDivSc and scaleYFactor
scyF_yRotDivScxRotDivSMcsxF protected scaleYFactor minus yRotDivSc multiplied by xRotDivSc and scaleXFactor
sizeShadow protected Approximate pixel size in meters.
srcGrid protected Original layer grid data
strVal protected For grid scaling
swapBW protected True if white and black are swapped.
testMask protected Used to convert to 24-bit format.
tileRect protected Last tile position in array.
unusedAlpha protected True if unused alpha band
unusedBlue protected True if unused blue band
unusedGreen protected True if unused green band
unusedRed protected True if unused red band
useStrVal protected For grid scaling
View3D public 3D Representation properties.
(Inherited from TGIS_Layer)
wasTransform protected True if transformation was previously set.
wordDivider protected Used for mapping 16-bits band to 8-bits
wordMultiply protected Used for mapping 16-bits band to 8-bits
wordShift protected Used for mapping 16-bits band to 8-bits
workAlpha protected To work on alpha data.
workDestRect protected To save last draw destination parameters.
workSrcRect protected To save last draw source parameters.
xRotDivSc protected rotation about x-axis divided by scaleY
yRotDivSc protected rotation about y-axis divided by scaleY

Methods

Inherited Overrides Protected
Name Visibility Description
addTransparency protected Adding transparency defined in transparen zones to image pixels .
Alive public Makes a layer non-dormant.
(Inherited from TGIS_Layer)
ApplyAntialiasSettings(bool) public Applies antialias settings used in scaling operations.
ApplyAntialiasSettings(bool, TGIS_ScalingFilter) public Applies antialias settings used in scaling operations.
applyColorsCorrectionByVals protected Applaing brightness, contrast and colors correction from pixel params to finalcorrection table.
applyConfigOptions protected Read config option parameters.
(Overrides TGIS_Layer.applyConfigOptions)
applyConfigProjection protected Read config projection parameters.
(Inherited from TGIS_Layer)
ApplyCuttingPolygon public Sets a cutting polygon for a layer.
(Overrides TGIS_Layer.ApplyCuttingPolygon)
ARGB2Gray protected Gray scale from ARGB bitmap.
AssignedParentLayerInternal public Assigns a parent layer.
bandsMappingChanging protected Checks bands mapping.
basePointRot protected Compute position of the point after the defined in world file rotation.
basePointUnRot protected Compute original position of the rotated point.
baseRotatedExtent protected Compute extent (encompassing area of the extent) after defined in world file rotation.
baseUnrotatedExtent protected Compute original extent of the rotated extent.
Build(bool, TGIS_CSCoordinateSystem, TGIS_Extent, double) public Builds an in-memory layer.
Build(bool, TGIS_CSCoordinateSystem, TGIS_Extent, int, int) public Builds an in-memory layer.
Build(string, bool, TGIS_CSCoordinateSystem, TGIS_Extent, double, TGIS_LayerPixelSubFormat) public Builds a layer.
Build(string, bool, TGIS_CSCoordinateSystem, TGIS_Extent, int, int, TGIS_LayerPixelSubFormat) public Builds a layer.
Build(string, TGIS_CSCoordinateSystem, TGIS_Extent, double) public Builds an image layer.
Build(string, TGIS_CSCoordinateSystem, TGIS_Extent, int, int) public Builds an image layer.
calculatePixelsize protected Calculate pixel size in layer units.
ChangeHash public Changes the hash for the purpose of verifying layer's 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.
Dormant public Makes a layer dormant.
(Inherited from TGIS_Layer)
DormantGain public Calculates the approximate gain (in Megabytes) which can be achieved by releasing memory by calling Dormant method.
(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 drawing area /clipping area of device/.
(Inherited from TGIS_Layer)
drawExtentEx protected Calculates the drawing area /clipping area of device/.
(Overrides TGIS_Layer.drawExtentEx)
DrawFlash public Does nothing (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)
enhanceContrast protected Enhance contrast by changing RGB values proportionally from 0 to 255.
ExportLayer public Export layer.
finalARGBMap protected Does final ARGB bands mapping and set on/off.
FinalizeWrite public Performs any operation required to safely finalize write operation, such as building quad trees for TGIS_FilePixelStore.
findProperPixelLock protected Checks locked pixels.
ForEachSubLayer public Returns in callback event the layer and all sublayers belonging to it.
(Inherited from TGIS_Layer)
fullCorrection protected Prepare final mapping table for full color (32-bits) images.
fullRGBCorrection protected Mapping full color (32-bits) images by .
GenerateRamp(TGIS_Color, TGIS_Color, TGIS_Color, double, double, double, bool, double, double, TGIS_ParamsSectionPixel, bool) public Generates a grid ramp.
GenerateRamp(TGIS_Color, TGIS_Color, TGIS_Color, double, double, double, bool, double, double, TGIS_ParamsSectionPixel, bool, TGIS_ColorInterpolationMode) public Generates a grid ramp.
GenerateRampEx(double, double, TGIS_ColorMap[], TGIS_ParamsSectionPixel) public Generates a grid ramp from a mapped color array.
GenerateRampEx(double, double, TGIS_ColorMap[], TGIS_ParamsSectionPixel, TGIS_ColorInterpolationMode) public Generates a grid ramp from a mapped color array.
get12BLine protected Internal use only.
get16BLine protected Internal use only.
get1BLine protected Internal use.
get4BLine protected Internal use only.
get8BLine protected Internal use only.
getAlphaLine protected Internal use only.
getAsyncState protected Report data fetching state from asynchronous sources like ECW.
GetAvailableLayers public Gets a list of layers available in storage.
(Inherited from TGIS_Layer)
GetBitmap public Fills provided _bitmap array with values defined by _extent.
getBitmapData protected Fills provided _bitmap array with values defined by _extent.
getBitmapPixels protected Gets bitmap layer data in ARGB format.
GetColorRamp public Calculates default color ramp RGB values.
GetGrid public Fills provided _grid array with values defined by _extent.
getGridData protected Fills provided _grid array with values defined by _extent.
getGridDataSup protected Fills provided _grid array with values defined by _extent.
getLine protected Internal use only.
getLineBasic protected Internal use only.
getLineBits protected Internal use only.
getLinePixels protected Internal use only.
getMapZoneVal protected Getting mapping zone from String
getNativeLine protected Internal use only.
getNativeLineGrayGrid protected Internal use only.
getNativeValue protected Internal use only.
GetRawBitmap public Fills provided _bitmap array with values defined by _extent.
gridToARGBTable protected Fills pixels array with ARGB values from source grid table.
histEqPav protected Prepare correction (mapping) table with histogram equalization for full color images.
histRGB2Gray protected Prepare one histogram from RGB channel histograms.
HourglassShake public Notifies of busy state using an hourglass.
(Inherited from TGIS_Layer)
ImportLayer(TGIS_LayerPixel, TGIS_Extent) public Imports layer from an existing pixel layer.
ImportLayer(TGIS_LayerPixel, TGIS_Extent, TGIS_CSCoordinateSystem, uint, uint) public Imports layer from an existing pixel layer.
ImportLayer(TGIS_LayerPixel, TGIS_Extent, TGIS_CSCoordinateSystem, uint, uint, TGIS_LayerPixelSubFormat) public Imports layer from an existing pixel layer.
importPixelData protected Imports and saves data form pixel layer.
InitializeWrite public Performs any operation required to safely initialize write operation, such as batch operations for TGIS_FilePixelStore.
inversePalette protected Prepare a negative from the RGB 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)
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)
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 Lanczos filtering function.
linear protected Linear (triangle) filtering function.
Locate public If a given point is located in the image area, returns true and sets variables.
LocateEx public If a given point is located in the image area, returns true and sets variables.
Lock public Locks layer in burst-mode operation.
(Inherited from TGIS_Layer)
LockEstimate public Estimates memory size for pixel layer to be update.
LockPixels(TGIS_Extent, TGIS_CSCoordinateSystem, bool) public Locks a fragment of the pixel layer for updating.
LockPixels(TGIS_Extent, TGIS_CSCoordinateSystem, double, bool) public Locks a fragment of the pixel layer for updating.
LockPixels(TGIS_Extent, TGIS_CSCoordinateSystem, double, int, bool) public Locks a fragment of the pixel layer for updating.
LockPixels(TGIS_Extent, TGIS_CSCoordinateSystem, int, bool) public Locks a fragment of the pixel layer for updating.
LockPixels(TRect, bool) public Locks a fragment of the pixel layer for updating.
LockPixels(TRect, int, bool) public Locks a fragment of the pixel layer for updating.
LockPixels(TRect, TGIS_Extent, int, int, int, bool) public Locks a fragment of the pixel layer for updating.
lockThread protected Locks thread.
(Inherited from TGIS_Layer)
Loop(double, TGIS_Shape, bool) public Prepares enumerator to iterate the layer through the linear shape.
Loop(double, TGIS_Shape, int, bool) public Prepares enumerator to iterate the layer through the linear shape.
Loop(TGIS_Extent, double, bool) public Prepares enumerator to iterate the layer (pixels are treated as points).
Loop(TGIS_Extent, double, bool, TGIS_Shape, string, bool) public Prepares enumerator to iterate the layer.
Loop(TGIS_Extent, double, bool, TGIS_Shape, string, int, bool) public Prepares enumerator to iterate the layer.
Loop(TGIS_Extent, double, int, bool) public Prepares enumerator to iterate the layer (pixels are treated as points).
Loop(TGIS_Extent, double, TGIS_Shape, string, bool) public Prepares enumerator to iterate the layer (pixels are treated as points).
Loop(TGIS_Extent, double, TGIS_Shape, string, int, bool) public Prepares enumerator to iterate the layer (pixels are treated as points).
makeHistogram protected Read, or make and save, the histogram.
makeLineGrid protected Internal use only.
MapColorValue public Maps color value to pixel color.
MapGridValue public Maps grid value to pixel color.
MapToRaster public Converts map coordinates to raster pixel location.
MapToRasterRect public Converts map extent to raster rectangle.
MergeLayer public Merge layer to an existing 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 if all statistics required to properly render the layer are available.
(Inherited from TGIS_Layer)
MustReproject public Checks if the layer must be reprojected.
(Inherited from TGIS_Layer)
MustSave public Checks if the layer was modified by editing.
(Overrides TGIS_Layer.MustSave)
Open public Opens the layer.
(Inherited from TGIS_Layer)
openBufferedFileStream protected Open a file stream in read mode.
optimizeParamsCache protected Move section specified by _idx 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)
prepAltitudeMapTbl protected Prepare altitude map table.
Prepare public Opens the layer.
(Inherited from TGIS_Layer)
prepareMinMaxZ protected Scan grid to prepare min/max value of altitude
prepareMinMaxZGray protected Scan image to prepare min/max value of altitude when interpreting RGB as single channel "AsGrid".
prepareParamsCache protected Prepare cached section list meeting the _style name.
(Inherited from TGIS_Layer)
prepColorMapTbl protected Prepare an array (corRGB) for mapping full RGB colors.
prepCorTbl protected Prepare mapping table with no correction for full color images.
prepFinalCorTable protected Prepare final mapping table for full color (32-bits) images.
prepFullGrayTable protected Preparing map table for making a gray scale image from a full color (32-bits) bitmap scan line.
prepFullRGBMapTbl protected Prepare corFullRGB table.
prepGrayMapTbl protected Prepare an array (mapGray2RGB) for mapping gray scale to colors by points (grayMapList).
prepRGBHist protected Prepare histograms for ARGB (32-bits) bitmap scan line.
prepTransparent protected Prepare transparency table.
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 a projection on the single point in 3D.
(Inherited from TGIS_Layer)
ProjectExtent public Applies a projection on the extent.
(Inherited from TGIS_Layer)
projectionNeed protected If image reprojection is needed.
Project_Ref public Applies a projection on the single point.
(Inherited from TGIS_Layer)
putBitmapRawData protected Fills provided _bitmap array with values defined by _extent.
PutGrid public Puts _grid array into layer at the place 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 raster pixel location to map coordinates
RasterToMapRect public Convert raster rectangle to map extent
ReadConfig public Reads the layer configuration files.
(Inherited from TGIS_Layer)
ReadConfigParam public Reads the layer configuration parameters.
(Inherited from TGIS_Layer)
readDoubleBE protected Read double (8 bytes) from big endian stored bytes.
readDoubleLE protected Read double (8 bytes) from little endian stored bytes.
ReadGridLine public Reads a specific line of the grid into the preallocated buffer.
RecalcExtent public Recalculates extent based on real shapes.
(Inherited from TGIS_Layer)
RecalcProjectedExtent public Recalculates the projected extent.
(Overrides TGIS_Layer.RecalcProjectedExtent)
Recalculate public Recalculates layer MinZ and MaxZ values.
ReOpen public Reopens the layer.
(Inherited from TGIS_Layer)
RereadConfig public Rereads the layer configuration files.
(Inherited from TGIS_Layer)
resetMustReproject protected Reset MustReporoject state.
(Inherited from TGIS_Layer)
resolveBandDefintion protected Resolve bands definition from ForceBandLayout or 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 If image rotation is needed.
SaveAll public Saves layer and destroys mirrored items.
(Inherited from TGIS_Layer)
SaveData public Save the entire layer to the file.
(Overrides TGIS_Layer.SaveData)
ScaleGrid(float[][], float[][], int, int) public Scales grid array using a linear filter by default.
ScaleGrid(float[][], float[][], int, int, TGIS_ScalingFilter) public Scales grid array using defined filtering.
setBitmapPalette protected Set bitmap palette to gray scale image.
setBmpTransparent protected Fills provided _bitmap array with Alpha value = $FF (full transparent).
SetCSByEPSG public Sets up Coordinate System to a coordinate system provided by a EPSG code.
(Inherited from TGIS_Layer)
SetCSByWKT public Sets up Coordinate System to a coordinate system provided by a WKT string (GEOGCS or PROJCS).
(Inherited from TGIS_Layer)
SetCSByWKTFile public Sets up Coordinate System to a coordinate system provided by a file which contains a WKT string (GEOGCS or PROJCS).
(Inherited from TGIS_Layer)
SetCurrentFileScale public Sets internal file scales - (1.0, 1.0) is always possible
setFileScale protected Set internal imagery scale.
setFileScaleXY protected Set internal imagery scale.
setFileView protected Set internal imagery view.
setLineFuncAddr protected Finds and sets line reading function.
setMapZone protected Set mapping zone in color map table.
setNoDataTable protected Fills provided _grid array with NoDataValue
setPage protected Sets CurrentPage in multipages image
setUp protected makes a general layer setup
(Overrides TGIS_Layer.setUp)
setUp2 protected Makes a general layer setup second step.
(Inherited from TGIS_Layer)
setUp3 protected Makes a general layer setup third step.
(Overrides TGIS_Layer.setUp3)
setUpInternal protected setting up pixel layer parameters
setupParams protected Set up parameters cache.
SetWorld public Sets world parameters (equivalent to worldfile).
setWorldFile protected Set extent based on world file (like .tfw, .bpw) itp.
simpleRGBCorrection protected Mapping red, green, blue colors bands if image.
storeConfigOptions protected Store layer options in a configuration file.
(Overrides TGIS_Layer.storeConfigOptions)
transformExtent protected Custom transformation of the extent.
(Inherited from TGIS_Layer)
transformNeed protected If image transformation is needed.
Unlock public Unlocks layer from burst-mode operation.
(Inherited from TGIS_Layer)
UnlockPixels public UnLocks a fragment.
unlockThread protected Unlocks thread.
(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 (recovers from the projection) on the singlepoint in 3D.
(Inherited from TGIS_Layer)
Unproject3D_Ref public Applies reverse projection (recovers from the projection) on the single point in 3D.
(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 (recover from projection) on the single point.
(Inherited from TGIS_Layer)
WriteConfig public Writes layer configuration files.
(Inherited from TGIS_Layer)

Properties

Inherited Protected
Name Visibility Description
Active public Checks if the layer is active? Active means layer is visible and an object can be localized on the layer.
(Inherited from TGIS_Layer)
Addition public Additional value.
(Inherited from TGIS_Layer)
Age public Age of the layer (since its creation).
(Inherited from TGIS_Layer)
Antialias public Antialias scaling (for some layers only like PNG and JPG).
AntialiasFilter public Scaling filter (like Linear, Lanczos) to be used for scaling images and grids.
BandsCount public Number of bands in a file.
Basemap public True if the layer must be interpreted as basemap (for background painting).
(Inherited from TGIS_Layer)
BitHeight public Height of the layer in pixels.
BitWidth public Width of the layer in pixels.
CachedPaint public False if layer must be painted directly (bypassing cache).
(Inherited from TGIS_Layer)
Capabilities public Pixel sub-format list that is available for write operation.
Caption public Caption of layer; if not filed directly then will be filed with Name when adding 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 in which text has been stored.
(Inherited from TGIS_Layer)
Collapsed public Checks if the layer is collapsed? Collapsed means only the layer's title will be visible inside the legend.
(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 System that is assigned to the layer.
(Inherited from TGIS_Layer)
CurrentPage public Current page of multipage file.
CustomData public List of custom, user-defined data.
(Inherited from TGIS_Layer)
CuttingPolygon public Cutting polygon that defines an input image's valid area.
DefaultSubFormat public Default subformat information.
DirectMode public True if the layer is direct-mode (bypassing cache).
(Inherited from TGIS_Layer)
DormantMode public Dormant 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)
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.
HideFromLegend public False if the layer should not be visible in legend.
(Inherited from TGIS_Layer)
Interpretation public The way the layer is interpreted: the default is as a grid, or as an image.
IsExportable public True if the layer is exportable.
(Inherited from TGIS_Layer)
IsGridImage public True if image is a grid.
IsLocked public True if the layer is in locked state.
(Inherited from TGIS_Layer)
IsNativeGridImage public True if image is 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 layer is tiled.
IsTopmost public True if the layer can be interpreted as the topmost (trackable) layer.
(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 Type of multiuser mode.
(Inherited from TGIS_Layer)
Name public Name of layer; if not filled directly, then will be filled with Path when added to the viewer.
(Inherited from TGIS_Layer)
NoDataValue public Grid NoData value.
PageCount public Number of pages in an image file.
Params public Returns parameters for pixel layer.
ParamsList public List of all parameter sections attached to the current layer.
(Inherited from TGIS_Layer)
ParentLayer public Parent layer of a sub layer.
(Inherited from TGIS_Layer)
Path public Path to file holding the layer's data.
(Inherited from TGIS_Layer)
PathTAB public Path to a TAB referencing file.
PathWithDriver public Path to file with the layer's data extended with driver name.
(Inherited from TGIS_Layer)
Progressive public If true (default), then layer can be drawn as progressive.
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 Reference to a potential layer underlying the stream.
(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 Type of sublayer.
(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)
Transform public Custom transformation.
(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 config file is active.
(Inherited from TGIS_Layer)
UserObject public UserObject can be used to associate with the layer a user-defined object.
(Inherited from TGIS_Layer)
Viewer public Reference to a viewer object.
(Inherited from TGIS_Layer)
ZOrder public Layer's position relative to 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 public Grid operation event.
PixelOperationEvent public 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.

References

2020/07/10 22:26