UserPointSymbol
Defines a symbol that functions can use to represent points in an overlay. For example, to set up the 3 x 3 symbol:
1 | 0 | 1 |
1 | 0 | 1 |
1 | 0 | 1 |
called mySymbol, use the following syntax:
mySymbol.cols = 3
mySymbol.rows = 3
mySymbol.pixels = malloc(9 * sizeof(int))
mySymbol.pixels[0] = 1
mySymbol.pixels[1] = 0
mySymbol.pixels[2] = 1
mySymbol.pixels[3] = 1
mySymbol.pixels[4] = 0
mySymbol.pixels[5] = 1
mySymbol.pixels[6] = 1
mySymbol.pixels[7] = 0
mySymbol.pixels[8] = 1
Elements
Name | Type | Description |
---|---|---|
cols | int | Number of columns in the symbol. |
rows | int | Number of rows in the symbol. |
pixels | int* | The pixels of the symbol. Specify these pixels in order from the top-left of the symbol to the bottom-right of the symbol. The function evaluates each pixel as either off (zero value) or on (non-zero value). |