PictureEffectsRaw Xojo Plugin

MeshGrid Class

A class to define the mesh grid for the MeshWarpEffectRaw class.

Every point in the grid will store how much it offsets from its natural location. So a mesh grid with no distortion will have all its points set to 0, 0.

Object
   MeshGrid

class MeshGrid

Constructors

MeshGrid (console safe) Constructor that takes in columns and rows.

Properties

Columns (console safe) Number of columns in the grid.
PointCount (console safe) Number of corner points in the grid.
Rows (console safe) Number of rows in the grid.

Methods

BaseLocationXForPoint (console safe) Returns the calculated base location (X coord) for given point index for image of given size.
BaseLocationYForPoint (console safe) Returns the calculated base location (Y coord) for given point index for image of given size.
MeshPointFromXY (console safe) Gets mesh point from X, Y mouse coordinates, with given tolerance.
OffsetX (console safe) Gets or sets the offset (X coord) of a mesh grid point.
OffsetY (console safe) Gets or sets the offset (Y coord) of a mesh grid point.
PointIndexToMeshX (console safe) Gets Mesh X number from pointIndex.
PointIndexToMeshY (console safe) Gets Mesh Y number from pointIndex.

Supported Platforms:

  • macOS Intel 64 bit
  • macOS Apple Silicon
  • Windows 32 bit
  • Windows 64 bit
  • Windows ARM 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM 32 bit
  • Linux ARM 64 bit
  • iOS