User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_layerpixel.locate_itgis_point_itgis_color_itgis_doublearray_wordbool

ITGIS_LayerPixel.Locate method

DK11 for ActiveX | TatukGIS_XDK11.ITGIS_LayerPixel.Locate | Methods | Properties

If a given point is located in the image area, returns true and sets variables.

Available also on: Delphi | .NET | Java.

Syntax

// C#
public WordBool Locate(
  ITGIS_Point _ptg,
  ref ITGIS_Color _rgbMapped,
  ref ITGIS_DoubleArray _nativesVals,
  ref WordBool _transparency
);
' VisualBasic
Public Function Locate(
  ByVal _ptg As ITGIS_Point,
  ByRef _rgbMapped As ITGIS_Color,
  ByRef _nativesVals As ITGIS_DoubleArray,
  ByRef _transparency As WordBool
) As WordBool
// Oxygene
public
  function Locate(
    _ptg : ITGIS_Point;
    var _rgbMapped : ITGIS_Color;
    var _nativesVals : ITGIS_DoubleArray;
    var _transparency : WordBool
  ) : WordBool;

Parameters

Name Type Description
_ptg ITGIS_Point reference point /searching point/; if the layer has been attached to the Viewer then expected _ptg units are in a Viewer coordinate space; otherwise expected _ptg units are in a Layer coordinate space
_rgbMapped ITGIS_Color color in _ptg point after mapping (the same as _nativesVals if no mapping, in this case _rgbMapped and $FF = Byte(_nativesVals[0] and so on).
_nativesVals ITGIS_DoubleArray dynamic array of double with original values in _ptg point (for example R, G, B), Length(_nativesVals) is equal to number of bands
_transparency WordBool set on True if point is transparent

Result

Type Description
WordBool True if success

Remarks

same meaning as LocateEx() with _pixelsize=0

References

2020/06/27 08:12

Page Tools