Click or drag to resize
TileShapeGetTopSolidPixel Method
Gets the vertical coordinate of the top-most solid pixel of a tile shape between two horizontal offsets.

Namespace: (Default Namespace)
Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax
C#
public abstract short GetTopSolidPixel(
	short width,
	short height,
	short min,
	short max
)

Parameters

width
Type: SystemInt16
Width of the tile to which the shape is being applied
height
Type: SystemInt16
Height of the tile to which the shape is being applied
min
Type: SystemInt16
Horizontal offset of the left side of the range to test
max
Type: SystemInt16
Horizontal offset of the right side of the range to test

Return Value

Type: Int16
A value between 0 and height-1, inclusive, or short.MaxValue if there is no solid
See Also